import { useId, type ReactNode } from "react"; import { Label } from "@/components/ui/label"; interface SettingRowProps { label: string; description: string; control: (id: string) => ReactNode; } export function SettingRow({ label, description, control }: SettingRowProps) { const id = useId(); return (

{description}

{control(id)}
); }