'use client'; import type { DetailTab } from '@/components/shared/detail-layout'; import { NotesList } from '@/components/shared/notes-list'; interface ClientTabsOptions { clientId: string; currentUserId?: string; client: { fullName: string; companyName?: string | null; nationality?: string | null; isProxy?: boolean; proxyType?: string | null; actualOwnerName?: string | null; yachtName?: string | null; yachtLengthFt?: string | null; yachtWidthFt?: string | null; yachtDraftFt?: string | null; berthSizeDesired?: string | null; preferredContactMethod?: string | null; preferredLanguage?: string | null; timezone?: string | null; source?: string | null; sourceDetails?: string | null; contacts?: Array<{ id: string; channel: string; value: string; label?: string | null; isPrimary: boolean; }>; }; } function InfoRow({ label, value }: { label: string; value?: string | null }) { if (!value) return null; return (
{label}
{value}
); } function OverviewTab({ client }: { client: ClientTabsOptions['client'] }) { return (
{/* Personal Info */}

Personal Information

{/* Contacts */}

Contact Details

{client.contacts && client.contacts.length > 0 ? (
{client.contacts.map((c) => (
{c.channel} {c.value} {c.label && ( {c.label} )} {c.isPrimary && ( Primary )}
))}
) : (

No contacts added

)}
{/* Yacht Details */} {(client.yachtName || client.yachtLengthFt || client.berthSizeDesired) && (

Yacht Details

)} {/* Source */} {(client.source || client.sourceDetails) && (

Source

)} {/* Proxy Info */} {client.isProxy && (

Proxy Information

)}
); } export function getClientTabs({ clientId, currentUserId, client, }: ClientTabsOptions): DetailTab[] { return [ { id: 'overview', label: 'Overview', content: , }, { id: 'interests', label: 'Interests', content: (

Interests will appear here once created.

), }, { id: 'notes', label: 'Notes', content: ( ), }, { id: 'files', label: 'Files', content: (

File attachments coming soon.

), }, { id: 'activity', label: 'Activity', content: (

Activity log coming soon.

), }, ]; }