import { ArrowUpDown } from 'lucide-react' import { cn } from '@/lib/utils' type SortBy = 'usage_count' | 'updated_at' | 'created_at' | 'name' | 'name_desc' | 'version' interface SortDropdownProps { value: SortBy onChange: (sortBy: SortBy) => void className?: string } const sortOptions: { value: SortBy; label: string }[] = [ { value: 'usage_count', label: 'Most Used' }, { value: 'updated_at', label: 'Recently Updated' }, { value: 'created_at', label: 'Recently Created' }, { value: 'name', label: 'Name (A-Z)' }, { value: 'name_desc', label: 'Name (Z-A)' }, { value: 'version', label: 'Version Number' }, ] export function SortDropdown({ value, onChange, className }: SortDropdownProps) { return (