import React from "react"; import * as SelectPrimitive from "@radix-ui/react-select"; import { Check, ChevronDown, ChevronUp } from "lucide-react"; import { cn } from "../../lib/utils"; import { ScrollArea } from "../ui/scroll-area"; import { TabsContent } from "../ui/tabs"; interface ToggleProps { checked: boolean; onChange: (checked: boolean) => void; disabled?: boolean; } export const Toggle: React.FC = ({ checked, onChange, disabled }) => ( ); interface SelectProps { value: string; options: { value: string; label: string; icon?: React.ReactNode }[]; onChange: (value: string) => void; className?: string; disabled?: boolean; placeholder?: string; } export const Select: React.FC = ({ value, options, onChange, className, disabled, placeholder, }) => { const selectedOption = options.find((opt) => opt.value === value); return ( span]:line-clamp-1", className, )} > {selectedOption?.icon} {selectedOption?.label} {options.map((opt) => ( {opt.icon} {opt.label} ))} ); }; export const SectionHeader: React.FC<{ title: string; className?: string }> = ({ title, className, }) =>

{title}

; interface SettingRowProps { label: string; description?: string; children: React.ReactNode; } export const SettingRow: React.FC = ({ label, description, children }) => (
{label}
{description &&
{description}
}
{children}
); export const SettingsTabContent: React.FC<{ value: string; children: React.ReactNode; }> = ({ value, children }) => (
{children}
);