feat: Extend App pages with tabs and data

This commit is contained in:
Ali BARIN
2021-10-09 21:56:16 +02:00
parent f36a5cb6d8
commit c078a97e12
10 changed files with 186 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
interface TabPanelProps {
children?: React.ReactNode;
index: number;
value: number;
}
export default function TabPanel(props: TabPanelProps) {
const { children, value, index, ...other } = props;
return (
<div
role="tabpanel"
hidden={value !== index}
{...other}
>
{value === index && children}
</div>
);
};