import Content from "@/components/Content/Content";
import {Table} from "@/components/Table/Table";
import Button from "@/components/Button/Button";
import {useModalContext} from "@/components/Modal/ModalContext";
import CarModelsModal from "@/modals/CarModel";

export default function CarModel() {
    const { setContentModal } = useModalContext();

    return (
        <Content>
            <Button onClickAction={() => setContentModal(<CarModelsModal />)}>Добавить элемент</Button>
            <Table header={['Код', 'Наименование', 'Год начала', 'Год окончания', "Действия"]}>
            </Table>
        </Content>
    );
}
