import React, { HTMLProps, useEffect } from "react"; import classNames from "classnames" import { Box, BoxProps, Breadcrumbs, BreadcrumbsProps, Container, Typography } from "@material-ui/core"; import "@/styles/page.scss" export type PageProps = { title?: string; } & BoxProps; export type PageHeaderProps = { maxWidth?: "sm" | "md" | "lg" | "xl" | false } & HTMLProps export const Page = ({ title, children, ...props }: PageProps) => { useEffect(() => { document.title = title ? title + " | Praktyka Studencka" : "Praktyka Studencka"; }, [ title ]) return { children } } Page.Header = ({ children, maxWidth = undefined, ...props }: PageHeaderProps) =>
{ children }
Page.Title = ({ children }: HTMLProps) => { children } Page.Breadcrumbs = ({ children, ...props }: BreadcrumbsProps) => { children }