(value?: string | null)
| 47 | }; |
| 48 | |
| 49 | const formatDateTime = (value?: string | null) => { |
| 50 | if (!value) return '—'; |
| 51 | const date = new Date(value); |
| 52 | return new Intl.DateTimeFormat('en-US', { |
| 53 | month: 'short', |
| 54 | day: 'numeric', |
| 55 | hour: 'numeric', |
| 56 | minute: 'numeric', |
| 57 | timeZoneName: 'short', |
| 58 | }).format(date); |
| 59 | }; |
| 60 | |
| 61 | const getWorkflowName = (workflowId: string, workflows: WorkflowOption[]): string => { |
| 62 | const match = workflows.find((workflow) => workflow.id === workflowId); |