feat(FE): Add DailyMarketingReportFilter and

DailyMarketingReportSkeleton components
This commit is contained in:
rstubryan
2026-02-12 11:38:46 +07:00
parent 43d26b4833
commit 5e4619fac7
2 changed files with 79 additions and 0 deletions
@@ -0,0 +1,37 @@
import DataStateSkeleton from '@/components/helper/skeleton/DataStateSkeleton';
import Table from '@/components/Table';
import { DailyMarketingRow } from '@/types/api/report/marketing.d';
import { ColumnDef } from '@tanstack/react-table';
const DailyMarketingReportSkeleton = ({
columns,
icon,
title,
subtitle,
}: {
columns: ColumnDef<DailyMarketingRow>[];
icon: React.ReactNode;
title: string;
subtitle: string;
}) => {
return (
<div className='relative size-full'>
<Table
data={[]}
columns={columns}
isLoading={true}
className={{
skeletonCellClassName: 'animate-none w-full h-5 bg-base-content/4',
headerColumnClassName: 'whitespace-nowrap',
containerClassName: 'mb-0 overflow-hidden',
tableWrapperClassName: 'overflow-hidden',
}}
/>
<div className='absolute inset-0 flex items-center justify-center'>
<DataStateSkeleton icon={icon} title={title} description={subtitle} />
</div>
</div>
);
};
export default DailyMarketingReportSkeleton;