import React from "react"; import { Switch } from "./ui/switch"; import { Label } from "./ui/label"; interface SwitchComponentProps { id: string; label?: string; description?: string; checked?: boolean; defaultChecked?: boolean; disabled?: boolean; onCheckedChange: (checked: boolean) => void; } export function SwitchInput({ id, label, description, disabled, checked, defaultChecked = false, onCheckedChange }: SwitchComponentProps) { return (
{label && }
{description && ( {description} )}
); }