ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / packages/design-system/components/custom/mode-toggle.tsx

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / packages/design-system/components/custom/mode-toggle.tsx
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberpackages/design-system/components/custom/mode-toggle.tsx
Original SHA-256fae2d28ef98c01654ff024ba9e65c3d23cbe508c796de685031d2538438c377c
Git blob SHAc94a8f4642928899ef4b5be0e43151ab30313872
Reading-copy SHA-256fae2d28ef98c01654ff024ba9e65c3d23cbe508c796de685031d2538438c377c

Original source ↗

Recovered source transcript

'use client' import { MoonIcon, SunIcon } from '@radix-ui/react-icons' import { useTheme } from 'next-themes' import { Button } from '../shadcn/button' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '../shadcn/dropdown-menu' const themes = [ { label: 'Light', value: 'light' }, { label: 'Dark', value: 'dark' }, { label: 'System', value: 'system' } ] export const ModeToggle = () => { const { setTheme } = useTheme() return ( <DropdownMenu> <DropdownMenuTrigger asChild> <Button variant="outline" size="icon" className="shrink-0 text-foreground"> <SunIcon className="dark:-rotate-90 h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:scale-0" /> <MoonIcon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" /> <span className="sr-only">Toggle theme</span> </Button> </DropdownMenuTrigger> <DropdownMenuContent align="end" className="w-40"> {themes.map(({ label, value }) => ( <DropdownMenuItem key={value} onClick={() => setTheme(value)} className="text-sm cursor-pointer" > <span className="cursor-pointer">{label}</span> </DropdownMenuItem> ))} </DropdownMenuContent> </DropdownMenu> ) }

Search equations, builds, manuscript text, and recovered sources.