'use client' import React from 'react' import { useTenantSelection } from '@payloadcms/plugin-multi-tenant/client' /** * Navigation Link zum Tenant Dashboard * Wird nur angezeigt, wenn ein Tenant ausgewählt ist */ export const DashboardNavLink: React.FC = () => { const { selectedTenantID } = useTenantSelection() // Nur anzeigen, wenn ein Tenant ausgewählt ist if (!selectedTenantID) { return null } return ( { e.currentTarget.style.backgroundColor = 'var(--theme-elevation-50)' }} onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = 'transparent' }} > Tenant Dashboard ) } export default DashboardNavLink