mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
30 lines
923 B
TypeScript
30 lines
923 B
TypeScript
import { Box } from '@/components';
|
|
import { Tab, Tabs } from '@blueprintjs/core';
|
|
import { InvoiceCustomizeHeader } from './InvoiceCustomizeHeader';
|
|
import styles from './InvoiceCustomizeTabs.module.scss';
|
|
import {
|
|
InvoiceCustomizeTabsEnum,
|
|
useInvoiceCustomizeTabsController,
|
|
} from './InvoiceCustomizeTabsController';
|
|
|
|
export function InvoiceCustomizeTabs() {
|
|
const { setCurrentTabId } = useInvoiceCustomizeTabsController();
|
|
|
|
const handleChange = (value: InvoiceCustomizeTabsEnum) => {
|
|
setCurrentTabId(value);
|
|
};
|
|
return (
|
|
<Box className={styles.root}>
|
|
<InvoiceCustomizeHeader label={''} />
|
|
|
|
<Box className={styles.content}>
|
|
<Tabs vertical fill onChange={handleChange} className={styles.tabsList}>
|
|
<Tab id="general" title="General" />
|
|
<Tab id="content" title="Content" />
|
|
<Tab id="total" title="Total" />
|
|
</Tabs>
|
|
</Box>
|
|
</Box>
|
|
);
|
|
}
|