update: thanks

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent 2f5e05f937
commit 7679c79d30
10 changed files with 178 additions and 12 deletions
+12
View File
@@ -15,6 +15,7 @@ export enum Step {
Play = 'play',
Summary = 'summary',
Achv = 'achv',
Thanks = 'thanks',
}
export enum Mode {
@@ -192,3 +193,14 @@ export const useGoHome = () => {
const setStep = useSetAtom(stepAtom)
return useCallback(() => setStep(Step.Idle), [setStep])
}
export const useGoThanks = () => {
const setStep = useSetAtom(stepAtom)
return useCallback(() => setStep(Step.Thanks), [setStep])
}
export const useFeatures = () => {
const { features } = useConfig()
const [{ times }] = useProfile()
return times >= features
}