import { useId, type ComponentPropsWithRef, type ReactNode } from "react"; import { Search } from "lucide-react"; import { SearchInput } from "@/components/ui/input"; import { ToggleButton } from "@/components/ui/toggle-button"; import { SETTINGS_SEARCH_INPUT_CLASS } from "@/components/settings/shared/SettingsControls"; import { cn } from "@/lib/utils"; type CatalogSearchProps = Omit, "className">; export function CatalogSearch(props: CatalogSearchProps) { return (
); } export function CatalogToolbar({ search, children }: { search?: CatalogSearchProps; children: ReactNode }) { return (
{children} {search && }
); } export function CatalogControls({ children }: { children: ReactNode }) { return
{children}
; } export function CatalogToggle({ label, checked, onChange }: { label: string; checked: boolean; onChange: (checked: boolean) => void; }) { return ( ); } export function CatalogFilter({ label, value, options, onChange }: { label: string; value: T; options: ReadonlyArray<{ value: T; label: ReactNode }>; onChange: (value: T) => void; }) { const name = useId(); return (
{options.map((option) => ( ))}
); }