import type { FC, PropsWithChildren, ReactNode } from "react"; import { Avatar, Group, Paper, Text, Title } from "@mantine/core"; import classes from "./InstrumentHeader.module.css"; type InstrumentHeaderProps = PropsWithChildren<{ logoSrc: null | string; name: string; subtitle: ReactNode; }>; const InstrumentHeader: FC = (props) => { const { children, logoSrc, name, subtitle } = props; return (
{name[0]}
{name} {subtitle}
{children}
); }; export { InstrumentHeader };