export interface AdminTableProps { id: string; headers: any[]; desktopRows: any; mobileCards: any; emptyState?: any; colSpan?: number; isEmpty?: boolean; } export const AdminTable = ({ id, headers, desktopRows, mobileCards, emptyState, colSpan, isEmpty, }: AdminTableProps) => { return ( <> {/* Desktop Table View (≥ 768px) */} {/* Mobile Deck View (< 768px) */}
{isEmpty ? (

{emptyState}

) : mobileCards}
); };