feat(FE-355): Add sale report tabs and marketing layout

This commit is contained in:
rstubryan
2025-12-17 09:50:55 +07:00
parent 0f7f4e891c
commit 43afc5781c
4 changed files with 58 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import SuspenseHelper from '@/components/helper/SuspenseHelper';
const Layout = ({
children,
}: Readonly<{
children: React.ReactNode;
}>) => {
return <SuspenseHelper>{children}</SuspenseHelper>;
};
export default Layout;
+7
View File
@@ -0,0 +1,7 @@
import SaleReportTabs from '@/components/pages/report/sale/SaleReportTabs';
const SaleReport = () => {
return <SaleReportTabs />;
};
export default SaleReport;
@@ -0,0 +1,37 @@
'use client';
import Tabs from '@/components/Tabs';
import { HppPerKandangTab } from '@/components/pages/report/sale/tab/HppPerKandangTab';
const SaleReportTabs = () => {
const tabs = [
{
id: '1',
label: 'Penjualan Harian',
content: 'Penjualan Harian Tab',
},
{
id: '2',
label: 'Transaksi Penjualan DO',
content: 'Transaksi Penjualan DO Tab',
},
{
id: '3',
label: 'Perbandingan HPP Per Rentang BW',
content: 'Perbandingan HPP Per Rentang BW Tab',
},
{
id: '4',
label: 'HPP Harian Kandang',
content: <HppPerKandangTab />,
},
];
return (
<section className='w-full p-4'>
<Tabs tabs={tabs} variant='lifted' />
</section>
);
};
export default SaleReportTabs;
@@ -0,0 +1,3 @@
export const HppPerKandangTab = () => {
return <div>HPP Per Kandang Tab</div>;
};