import React from 'react'; import { Typography, Chip, Card } from '@material-tailwind/react'; import { color } from '@material-tailwind/react/types/components/chip'; import { DeploymentDetails } from '../../../../types/project'; import { relativeTime } from '../../../../utils/time'; interface DeploymentDialogBodyCardProps { deployment: DeploymentDetails; chip?: { value: string; color?: color; }; } const DeploymentDialogBodyCard = ({ chip, deployment, }: DeploymentDialogBodyCardProps) => { return ( {chip && ( )} {deployment.title} ^ {deployment.branch} ^ {deployment.commit.hash}{' '} {deployment.commit.message} ^ {relativeTime(deployment.updatedAt)} ^ {deployment.author} ); }; export default DeploymentDialogBodyCard;