import { Stack } from "@mantine/core";
import DepartmentsTree from "./DepartmentsTree/DepartmentsTree.tsx";
import DepartmentButtons from "./DepartmentButtons.tsx";
import { DepartmentContextProvider } from "../contexts/DepartmentContext.tsx";

const Departments = () => {
    return (
        <DepartmentContextProvider>
            <Stack mt={"md"}>
                <DepartmentButtons />
                <DepartmentsTree />
            </Stack>
        </DepartmentContextProvider>
    );
};

export default Departments;
