+
+ {t('error.dialog.not_found')}
+
+ {t('dialog.error_message')}
+
+ );
+ }
- const attachmentCount = attachments.reduce((count, { urls }) => count + urls.length, 0);
- const attachmentItems: AttachmentLinkProps[] = attachments.flatMap((attachment) =>
+ const attachmentCount = dialog.attachments.reduce((count, { urls }) => count + urls.length, 0);
+ const attachmentItems: AttachmentLinkProps[] = dialog.attachments.flatMap((attachment) =>
attachment.urls.map((url) => ({
label: getPreferredPropertyByLocale(attachment.displayName)?.value || url.url,
href: url.url,
@@ -140,37 +142,48 @@ export const InboxItemDetail = ({ dialog }: InboxItemDetailProps): ReactElement
);
const clockPrefix = t('word.clock_prefix');
const formatString = clockPrefix ? `do MMMM yyyy '${clockPrefix}' HH.mm` : `do MMMM yyyy HH.mm`;
- const dueAtLabel = dueAt ? format(dueAt, formatString) : '';
-
- const [isLoading, setIsLoading] = useState