import {Card} from "@/components/ui/card"; import {Skeleton} from "@/components/ui/skeleton"; import {Customer} from "@/services/customers/entities/customer"; import React from "react"; type Props = { loading: boolean; customer: Customer | null; informationSection: React.ReactNode; phoneNumberSection: React.ReactNode; notesSection: React.ReactNode; projectsSection: React.ReactNode; }; export default function CustomerDetailContent({ loading, customer, informationSection, phoneNumberSection, notesSection, projectsSection, }: Readonly) { if (loading) { return (
); } if (!customer) { return (

Keine Kundendaten gefunden.

); } return (
{/* Row 1: 50/50 layout */}
{informationSection} {phoneNumberSection}
{/* Row 2: Fill remaining height */}
{notesSection}
{projectsSection}
); }