Files
cstb-next/src/app/(main)/preference/general/page.tsx
Purp1e 9103150562 [feat] use heroui + setup persistore + setup toast
todo: fix launchoption problem
2025-03-12 11:22:32 +08:00

18 lines
518 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client"
import { appStore } from "@/store/app"
import { useSnapshot } from "valtio"
export default function Page() {
const app = useSnapshot(appStore.state)
return (
<div className="flex flex-col gap-3 items-start pt-2 pb-1">
<p>{app.version}</p>
<p>{app.hasUpdate ? "有" : "无"}</p>
<p>{app.inited ? "是" : "否"}</p>
<p>{app.notice}</p>
<p>使{app.useMirror ? "是" : "否"}</p>
</div>
)
}