'use client'; import { DataNotFound } from '../shared/alert'; import { ContactRow } from '../shared/contact-row'; import { type OrderComponentProps } from './types'; import { useOrderQuery } from '@/hooks/api/orders'; import { LoadingSpinner } from '@repo/ui/components/ui/spinner'; export function OrderContacts({ documentId }: Readonly) { const { data: { order } = {}, isLoading } = useOrderQuery({ documentId }); const noContacts = !order?.slot?.master && !order?.client; return (

Участники

{isLoading && } {!isLoading && noContacts ? : null} {order?.slot?.master && ( )} {order?.client && ( )}
); }