import { Badge } from '@/components/ui/badge'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { useProfile } from '@/lib/hooks/useProfiles'; import { formatDate } from '@/lib/utils/format'; import { SampleList } from './SampleList'; interface ProfileDetailProps { profileId: string; open: boolean; onOpenChange: (open: boolean) => void; } export function ProfileDetail({ profileId, open, onOpenChange }: ProfileDetailProps) { const { data: profile, isLoading } = useProfile(profileId); if (isLoading) { return ( Loading profile... ); } if (!profile) { return null; } return ( {profile.name} Manage samples and view profile details {profile.description && ( Description {profile.description} )} {profile.language} Created {formatDate(profile.created_at)} ); }
{profile.description}