import ChevronLeftIcon from "@mui/icons-material/ChevronLeft"; import { Breakpoint, Button, Container, Stack, Typography } from "@mui/material"; import Grid from '@mui/material/Grid'; import React, { ReactElement, ReactNode } from "react"; import { useTranslation } from "react-i18next"; type WgerTemplateContainerRightSidebarProps = { title?: string | ReactElement; subTitle?: string | ReactElement; mainContent: ReactElement | null; sideBar?: ReactElement; optionsMenu?: ReactElement; backToTitle?: string; backToUrl?: string; fab?: ReactElement; }; function BackButton(props: { href: string | undefined, backToTitle: string | undefined }) { const { t } = useTranslation(); return ; } export const WgerContainerRightSidebar = (props: WgerTemplateContainerRightSidebarProps) => { const backTo = ; return ( {props.title} {props.subTitle && {props.subTitle} } {props.backToUrl && backTo} {props.optionsMenu} {props.mainContent} {props.sideBar} {props.fab} ); }; type WgerTemplateContainerFullWidthProps = { title?: string; children: ReactNode; backToTitle?: string; backToUrl?: string; optionsMenu?: ReactElement; maxWidth?: false | Breakpoint | undefined }; export const WgerContainerFullWidth = (props: WgerTemplateContainerFullWidthProps) => { const backTo = ; return ( {props.title} {props.backToUrl && backTo} {props.optionsMenu} {props.children} ); };