import * as React from 'react'; import { DateTime } from 'luxon'; import Stack from '@mui/material/Stack'; import Box from '@mui/material/Box'; import Tooltip from '@mui/material/Tooltip'; import Typography from '@mui/material/Typography'; import useFormatMessage from 'hooks/useFormatMessage'; function ExecutionName(props) { return ( {props.name} ); } function ExecutionId(props) { const formatMessage = useFormatMessage(); const id = ( {props.id} ); return ( {formatMessage('execution.id', { id })} ); } function ExecutionDate(props) { const createdAt = DateTime.fromMillis(parseInt(props.createdAt, 10)); const relativeCreatedAt = createdAt.toRelative(); return ( {relativeCreatedAt} ); } export default function ExecutionHeader(props) { const { execution } = props; if (!execution) return ; return ( ); }