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

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

export default HppExpeditionClosingSkeleton;
