import { Paper, PaperProps } from "@material-ui/core"; import styles from "./title-bar.module.css"; import clsx from "clsx"; import { ReactNode } from "react"; const height = 96; type Props = { name: string; author: string; rightColumnContent?: ReactNode; icon?: ReactNode; bottomMargin?: boolean; } & PaperProps; export function TitleBar({ name, author, rightColumnContent, className, icon, bottomMargin, }: Props) { return (
{icon &&
{icon}
}

{name}

{author}

{rightColumnContent}
); } TitleBar.height = height;