mirror of
https://github.com/langgenius/dify.git
synced 2026-08-01 09:50:50 +08:00
18 lines
478 B
TypeScript
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 }
|