import { Button, Stack, SxProps, Table, TableBody, TableCell, TableRow, Typography, useTheme, } from "@mui/material"; import TextFieldEx from "components/form/TextFieldEx"; import { ReactNode, useEffect, useMemo } from "react"; export { default as TableHeadCustom } from "./TableHeadCustom"; export type SimpleData = { title: string; value?: string; end?: ReactNode; }; export type SimpleDataListProps = { data: SimpleData[]; tableSx?: SxProps; }; export const SimpleDataList = ({ data, tableSx }: SimpleDataListProps) => { const { typography } = useTheme(); const fontSize = useMemo(() => { return typography.body2.fontSize; }, [typography]); return ( {data.map(({ title, value, end }, index) => { return ( {title} {end} ); })}
); };