mirror of
https://github.com/langgenius/dify.git
synced 2026-06-23 12:31:13 +08:00
17 lines
387 B
TypeScript
17 lines
387 B
TypeScript
'use client'
|
|
|
|
import { createLocalStorageState } from 'foxact/create-local-storage-state'
|
|
|
|
export const LEARN_DIFY_HIDDEN_STORAGE_KEY = 'explore-learn-dify-hidden'
|
|
|
|
const [
|
|
_useLearnDifyHidden,
|
|
useLearnDifyHiddenValue,
|
|
useSetLearnDifyHidden,
|
|
] = createLocalStorageState<boolean>(LEARN_DIFY_HIDDEN_STORAGE_KEY, false)
|
|
|
|
export {
|
|
useLearnDifyHiddenValue,
|
|
useSetLearnDifyHidden,
|
|
}
|