import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import { BaseBox } from "@/components/design-elements"; import Box from "@mui/material/Box"; import { useTheme } from "@mui/material/styles"; export interface ResolutionCardProps { resolved: boolean; type?: string; by?: string; note?: string; timestampLabel: string; // preformatted timestamp label durationLabel?: string; // optional preformatted duration } export const ResolutionCard = ({ resolved, type, by, note, timestampLabel, durationLabel, }: ResolutionCardProps) => { const theme = useTheme(); const bg = resolved ? theme.palette.success.lowContrast : theme.palette.error.lowContrast; return ( Resolution Status:{" "} {resolved ? "resolved" : "unresolved"} {resolved && ( <> Resolution type: {type || "N/A"} Resolved by: {by || "N/A"} )} {timestampLabel} {durationLabel && ( {durationLabel} )} Note: {note || "N/A"} ); }; export default ResolutionCard;