Files
opencrm/frontend/src/pages/portal/PortalProfile.tsx
T

15 lines
506 B
TypeScript

import { useAuth } from '../../context/AuthContext';
import CustomerDetail from '../customers/CustomerDetail';
export default function PortalProfile() {
const { user } = useAuth();
if (!user?.customerId) {
return <div className="text-center py-8 text-gray-500">Keine Kundendaten verfügbar.</div>;
}
// CustomerDetail rendert sich basierend auf der URL-Parameter :id
// Wir leiten direkt weiter auf die richtige Kunden-URL
return <CustomerDetail portalCustomerId={user.customerId} />;
}