mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
feat(FE-364): create MarketingReportContent component
This commit is contained in:
@@ -0,0 +1,44 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import { JSX, useState } from 'react';
|
||||||
|
|
||||||
|
import Tabs from '@/components/Tabs';
|
||||||
|
import DailyMarketingReportContent from '@/components/pages/report/DailyMarketingReportContent';
|
||||||
|
|
||||||
|
type MarketingReportTabType =
|
||||||
|
| 'daily'
|
||||||
|
| 'transaction'
|
||||||
|
| 'hpp-comparison'
|
||||||
|
| 'daily-hpp';
|
||||||
|
|
||||||
|
const marketingReportTabs: {
|
||||||
|
id: MarketingReportTabType;
|
||||||
|
label: string;
|
||||||
|
content: JSX.Element;
|
||||||
|
}[] = [
|
||||||
|
{
|
||||||
|
id: 'daily',
|
||||||
|
label: 'Penjualan Harian',
|
||||||
|
content: <DailyMarketingReportContent />,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const MarketingReportContent = () => {
|
||||||
|
const [activeTab, setActiveTab] = useState<string>('daily');
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className='w-full max-w-7xl pb-16'>
|
||||||
|
<Tabs
|
||||||
|
activeTabId={activeTab}
|
||||||
|
onTabChange={setActiveTab}
|
||||||
|
tabs={marketingReportTabs}
|
||||||
|
variant='lifted'
|
||||||
|
className={{
|
||||||
|
content: '-m-px pl-px',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default MarketingReportContent;
|
||||||
Reference in New Issue
Block a user