import { ArrowDown,ArrowUp,ArrowUpDown } from 'lucide-react'; import React from 'react'; export interface ThSortProps { column: string; label: React.ReactNode; currentSortBy: string; currentSortOrder: 'asc' | 'desc'; onSort: (column: string) => void; className?: string; align?: 'right' | 'center' | 'left'; } export default function ThSort({ column, label, currentSortBy, currentSortOrder, onSort, className = '', align = 'right', }: ThSortProps) { const isSorted = currentSortBy === column; const alignClasses = align === 'left' ? 'justify-start text-left' : align === 'center' ? 'justify-center text-center' : 'justify-start text-right'; return (