import { Paper } from "@mui/material"; import { countryStore } from "@shared"; import { observer } from "mobx-react-lite"; import { ArrowLeft } from "lucide-react"; import { useEffect } from "react"; import { useNavigate, useParams } from "react-router-dom"; export const CountryPreviewPage = observer(() => { const { id } = useParams(); const { getCountry, country } = countryStore; const navigate = useNavigate(); useEffect(() => { (async () => { await getCountry(id as string); })(); }, [id]); return (
{/*
*/}
{country && (

Название

{country?.name}

)}
); });