import type { ComponentType, ReactNode } from "react"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; export interface ComponentExample { title: string; titleValues?: Record; files: string[]; description: string; options: string; code: string; Preview: ComponentType; } export function Sample({ label, children }: { label: string; children: ReactNode }) { return

{label}

{children}
; } export function StatePicker({ label, value, options, onChange }: { label: string; value: T; options: readonly T[]; onChange: (value: T) => void; }) { return
{label}
; }