import { Card, CardContent, Typography } from "@mui/material"; import { getLocalizedString } from "@olenbetong/appframe-core"; import type { DamagesRecord } from "../../data"; type DuplicatePhoneViewItemProps = { record: DamagesRecord; linkToDamage: boolean; }; export function DuplicatePhoneViewItem({ record, linkToDamage }: DuplicatePhoneViewItemProps) { return ( { if (linkToDamage) { window.location.href = `${record.ID}`; } }} > {record.Date.toLocaleDateString()} {record.ElementID} - {record.DisplayName} {getLocalizedString("Description")}: {record.Description} {getLocalizedString("Cause")}: {record.Cause} {getLocalizedString("Action")}: {record.Action} ); }