import { Icon } from '@iconify/react'; import { DashboardMeta } from '@/types/api/dashboard/dashboard'; import DataStateSkeleton from '@/components/helper/skeleton/DataStateSkeleton'; const DashboardLineChartSkeleton = ({ meta }: { meta?: DashboardMeta }) => { return (
{/* Header with title skeleton */}
Performance{' '}
{/* Chart area with axes skeleton */}
{/* Chart content area */}
{/* Empty state centered in chart area */}
{!meta?.filters && ( <> {/* Filter icon */} } title='No Filters Selected' description='Please choose filters to narrow down your results and make your search easier.' /> )} {meta?.filters && ( <> {/* Filter icon */} } title='Data Not Yet Available' description='Please change your filters to get the data.' /> )}
{[1, 2, 3, 4].map((item) => (
))}
{/* X-axis skeleton (bottom) */}
{[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((item) => (
))}
); }; export default DashboardLineChartSkeleton;