import React, { PropsWithChildren } from "react"; import { Stack, TableHead as MuiTableHead, TableRow, TableRowProps, Typography, } from "@mui/material"; export interface TableHeadProps extends PropsWithChildren { title?: string; icon?: React.ReactNode; tableRowProps?: TableRowProps; } export const TableHead: React.FC = ({ children, icon, title, tableRowProps }) => ( {title != null && ( {icon} {title} )} {children} ); export default TableHead;