import Button, { EButtonSize, EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import CircleProgress from "@Front/Components/DesignSystem/CircleProgress"; import Newsletter from "@Front/Components/DesignSystem/Newsletter"; import Table from "@Front/Components/DesignSystem/Table"; import Tag, { ETagColor, ETagVariant } from "@Front/Components/DesignSystem/Tag"; import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography"; import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import classes from "./classes.module.scss"; import Tabs from "@Front/Components/Elements/Tabs"; import { useCallback, useState } from "react"; export default function DesignSystem() { const userDb = [ { username: "Maxime", id: 1, }, { username: "Vincent", id: 2, }, { username: "Massi", id: 3, }, { username: "Maxime", id: 4, }, { username: "Arnaud", id: 5, }, ]; const [selectedTab, setSelectedTab] = useState<(typeof userDb)[number]>(userDb[0]!); const onSelect = useCallback((value: (typeof userDb)[number]) => { setSelectedTab(value); }, []); return ( DesignSystem Tabs tabs={userDb.map((user) => ({ label: user.username, key: user.id.toString(), value: user, }))} onSelect={onSelect} />
{selectedTab.id} - {selectedTab.username}
Circle Progress
Tags
Table Tags
Table Send email ), }, { key: "2", name: "Doe", firstname: "Jane", button: , }, { key: "3", name: "Doe", firstname: "Jack", button: , }, ]} /> Buttons
); }