use-lift-mode.ts — ui Source File
Architecture documentation for use-lift-mode.ts, a typescript file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ded66567_a088_0ea1_ed4d_41ba34a9fe46["use-lift-mode.ts"] cba8a664_3253_9b8c_8abe_9f0e33bbc037["jotai"] ded66567_a088_0ea1_ed4d_41ba34a9fe46 --> cba8a664_3253_9b8c_8abe_9f0e33bbc037 68f194ce_9060_f5f9_d266_dd66c3d544fb["utils"] ded66567_a088_0ea1_ed4d_41ba34a9fe46 --> 68f194ce_9060_f5f9_d266_dd66c3d544fb style ded66567_a088_0ea1_ed4d_41ba34a9fe46 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { useAtom } from "jotai"
import { atomWithStorage } from "jotai/utils"
const configAtom = atomWithStorage<string[]>("lift-mode", [])
export function useLiftMode(name: string) {
const [chunks, setChunks] = useAtom(configAtom)
function toggleLiftMode(name: string) {
setChunks((prev) => {
return prev.includes(name)
? prev.filter((n) => n !== name)
: [...prev, name]
})
}
return {
isLiftMode: chunks.includes(name),
toggleLiftMode,
}
}
Domain
Subdomains
Functions
Dependencies
- jotai
- utils
Source
Frequently Asked Questions
What does use-lift-mode.ts do?
use-lift-mode.ts is a source file in the ui codebase, written in typescript. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in use-lift-mode.ts?
use-lift-mode.ts defines 1 function(s): useLiftMode.
What does use-lift-mode.ts depend on?
use-lift-mode.ts imports 2 module(s): jotai, utils.
Where is use-lift-mode.ts in the architecture?
use-lift-mode.ts is located at deprecated/www/hooks/use-lift-mode.ts (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/hooks).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free