/
jonca3d
/
react-animation-ts
Обзор
Документация
Войти
/
jonca3d
/
react-animation-ts
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/components/Layout/layout.tsx
23 строки
643 B
Evgeniy
update proj
10 окт 2024, 18:17
10 окт 2024, 18:17
cdc0030
Код
Авторство
О чём код?
import { useContext } from "react"; import ILayoutProps from "../../interfaces/ILayoutProps"; import { ThemeContext } from "../../context/ThemeContext"; import styles from "./layout.module.css"; import Header from "../Header/header"; import Footer from "../Footer/footer"; import Main from "../Main/main"; export default function Layout({ children }: ILayoutProps) { const { theme } = useContext(ThemeContext); return ( <> <div className={styles[theme]}> <Header /> <Main>{ children }</Main> <Footer /> </div> </> ) }