mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 04:58:32 +08:00
Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
20 lines
549 B
TypeScript
20 lines
549 B
TypeScript
'use client'
|
|
|
|
import { createLocalStorageState } from 'foxact/create-local-storage-state'
|
|
|
|
type StepByStepTourShellMode = 'expanded' | 'collapsed'
|
|
|
|
export const STEP_BY_STEP_TOUR_SHELL_MODE_STORAGE_KEY = 'step-by-step-tour-shell-mode'
|
|
|
|
const [
|
|
_useStepByStepTourShellMode,
|
|
useStepByStepTourShellModeValue,
|
|
useSetStepByStepTourShellMode,
|
|
] = createLocalStorageState<StepByStepTourShellMode>(
|
|
STEP_BY_STEP_TOUR_SHELL_MODE_STORAGE_KEY,
|
|
'expanded',
|
|
{ raw: true },
|
|
)
|
|
|
|
export { useSetStepByStepTourShellMode, useStepByStepTourShellModeValue }
|