'use client';
import Link from 'next/link';
import { Icon } from './Icons';
/**
* Skeleton component for deployment detail page
* Matches the layout of DeploymentDashboard for a seamless loading experience
*/
export function DeploymentSkeleton() {
return (
);
}
/**
* Skeleton for action cards
*/
function ActionCardSkeleton() {
return (
);
}
/**
* Error state component for deployment page
*/
export function DeploymentError({
error,
uuid,
}: {
error: string;
uuid: string;
}) {
return (
{error}
{error === 'Deployment not found' ? (
<>
The deployment with UUID "{uuid}" could not be found.
It may have been deleted or never existed.
>
) : (
<>
Unable to load deployment details. This could be due to a network issue
or the deployment service being temporarily unavailable.
>
)}
Back to Deployments
);
}
/**
* Empty state component for when no deployment data exists
*/
export function DeploymentEmpty({ uuid }: { uuid: string }) {
return (
No deployment data
The deployment "{uuid.substring(0, 9)}" exists
but has no data available yet. It may still be initializing.