import { Icon } from '@iconify/react';
import ClosingTabSkeleton from './ClosingTabSkeleton';
import { BaseSales } from '@/types/api/closing';
import { ColumnDef } from '@tanstack/react-table';

const SalesClosingSkeleton = ({
  columns,
  title = 'Data Penjualan Belum Tersedia',
  subtitle = 'Tidak ada data penjualan untuk periode ini.',
  iconName = 'heroicons:chart-bar',
}: {
  columns: ColumnDef<BaseSales>[];
  title?: string;
  subtitle?: string;
  iconName?: string;
}) => {
  return (
    <ClosingTabSkeleton<BaseSales>
      columns={columns}
      icon={
        <Icon icon={iconName} className='text-white' width={20} height={20} />
      }
      title={title}
      subtitle={subtitle}
    />
  );
};

export default SalesClosingSkeleton;
