import React from "react" import { Box, Grid, GridProps } from "@mui/material" interface ICommentedBlockProps extends GridProps { comment?: React.ReactNode } export function CommentedBlock(props: React.PropsWithChildren) { const { comment, children, ...rest } = props return {children} { comment && ({ p: 1, [theme.breakpoints.up("lg")] : { borderLeft: "5px solid #eee", height: "100%", }, [theme.breakpoints.down("lg")] : { borderTop: "5px solid #eee", borderBottom: "5px solid #eee" }, })}> {comment} } }