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

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

export default OverheadClosingSkeleton;
