import { styled, Box } from "@mui/material"; import { ApiType } from "../services/types"; const Item = styled(Box)(({ theme }) => ({ padding: "8px 0", margin: "0 12px", lineHeight: 1.35, borderBottom: `1px solid ${theme.palette.divider}`, "& .time": {}, "& .type": { display: "inline-block", padding: "0 6px", textAlign: "center", borderRadius: 2, textTransform: "uppercase", fontWeight: "600", }, "& .data": {}, })); interface Props { value: ApiType.LogItem; } const LogItem = (props: Props) => { const { value } = props; return ( {value.time} {value.type} {value.payload} ); }; export default LogItem;