/
mustreets
/
MYPortfolio
Обзор
Документация
Войти
/
mustreets
/
MYPortfolio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
flex
src/components/Layout/Layout.connected.tsx
28 строк
801 B
Slava
feat: add content creator page and integrate editor features
29 мар 2026, 08:40
29 мар 2026, 08:40
a510671
Код
Авторство
О чём код?
import { Trans } from "@lingui/macro"; import { useLocale } from "../../i18n"; import LayoutView from "./Layout.view"; import { useLayoutChrome } from "./useLayoutChrome"; export default function LayoutConnected({ children }) { const { locale, setLocale } = useLocale(); const chrome = useLayoutChrome(); const navLinks = [ { to: "/", label: <Trans>Главная</Trans> }, { to: "/projects", label: <Trans>Проекты</Trans> }, { to: "/blog", label: <Trans>Блог</Trans> }, { to: "/resume", label: <Trans>Резюме</Trans> }, { to: "/contact", label: <Trans>Контакты</Trans> }, ]; return ( <LayoutView navLinks={navLinks} locale={locale} setLocale={setLocale} {...chrome} > {children} </LayoutView> ); }