import { relativeTimeMs } from '@/utils/time';
import { Project } from 'gql-client';
import { Clock, GitBranch } from 'lucide-react';
import { ComponentPropsWithoutRef } from 'react';
/**
* Props for the ProjectDeploymentInfo component
*
* @property {Project} project - The project data containing deployment information
*/
interface ProjectDeploymentInfoProps extends ComponentPropsWithoutRef<'div'> {
project: Project;
}
/**
* ProjectDeploymentInfo component
*
* Displays information about the latest deployment for a project, including:
* - Commit message (or "No production deployment" if none exists)
* - Relative time since deployment or project creation
* - Branch name (if a deployment exists)
*
* The component handles both cases where a project has deployments and where it doesn't,
* displaying appropriate information in each case.
*
* @example
* ```tsx
*