import { Box, Tab, Tabs } from "@mui/material"; import { articlesStore, cityStore, languageStore } from "@shared"; import { CreateInformationTab, CreateLeftTab, CreateRightTab } from "@widgets"; import { useEffect, useState } from "react"; import { observer } from "mobx-react-lite"; function a11yProps(index: number) { return { id: `sight-tab-${index}`, "aria-controls": `sight-tabpanel-${index}`, }; } export const CreateSightPage = observer(() => { const [value, setValue] = useState(0); const { getCities } = cityStore; const { getArticles } = articlesStore; const handleChange = (_: React.SyntheticEvent, newValue: number) => { setValue(newValue); }; useEffect(() => { const fetchData = async () => { await getCities(); await getArticles(languageStore.language); }; fetchData(); }, []); return (
); });