import { Content, ContentVariants } from '@patternfly/react-core'; import CommitLabel from '~/components/Commits/commit-label/CommitLabel'; import { Timestamp } from '~/shared/components/timestamp/Timestamp'; import { Commit } from '~/types'; type Props = { name: string; creationTimestamp?: string; commit?: Commit; }; const SnapshotDetailsTitle = ({ name, creationTimestamp, commit }: Props) => ( <> {name} {commit?.sha && ( Triggered by {commit.shaTitle}{' '} at{' '} )} ); export default SnapshotDetailsTitle;