'use client'; import { useState } from 'react'; import { MoonIcon, SunIcon } from 'lucide-react'; import { Label } from '@workspace/ui/components/ui/label'; import { Switch } from '@/registry/base/switch'; interface BaseSwitchDemoProps { leftIcon?: boolean; rightIcon?: boolean; thumbIcon?: boolean; } export const BaseSwitchDemo = ({ leftIcon, rightIcon, thumbIcon, }: BaseSwitchDemoProps) => { const [checked, setChecked] = useState(true); const ThumbIcon = checked ? : ; return (
: null} rightIcon={rightIcon ? : null} thumbIcon={thumbIcon ? ThumbIcon : null} />
); };