'use client'; import { type ProfileProps } from './types'; import { useCustomerQuery } from '@/hooks/api/customers'; import { Avatar, AvatarFallback, AvatarImage } from '@repo/ui/components/ui/avatar'; import { Card } from '@repo/ui/components/ui/card'; import { LoadingSpinner } from '@repo/ui/components/ui/spinner'; export function PersonCard({ telegramId }: Readonly) { const { data: { customer } = {}, isLoading } = useCustomerQuery({ telegramId }); if (isLoading || !customer) return (
); return (
{customer?.name.charAt(0)}

{customer?.name}

); }