dify/web/app/education/expire-notice/storage.ts
yyh 78c7fb9c5c
refactor(web): move education verification to dedicated routes (#40493)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-11 09:56:11 +00:00

18 lines
478 B
TypeScript

import { createLocalStorageState } from 'foxact/create-local-storage-state'
export type EducationExpireNoticePhase = 'expiring' | 'expired'
export type DismissedEducationExpireNotice = {
accountId: string
expireAt: number
phase: EducationExpireNoticePhase
}
const [useDismissedEducationExpireNotice] =
createLocalStorageState<DismissedEducationExpireNotice | null>(
'dismissed-education-expire-notice',
null,
)
export { useDismissedEducationExpireNotice }