/** * TrusteeOrganisationsView * * Organisations-Verwaltung für eine Trustee-Instanz */ import React from 'react'; import { useTrusteeOrganisations, useTrusteeOrganisationOperations } from '../../../hooks/useTrustee'; import { useTablePermission } from '../../../hooks/useInstancePermissions'; import styles from './TrusteeViews.module.css'; export const TrusteeOrganisationsView: React.FC = () => { const { items: organisations, loading, error, refetch } = useTrusteeOrganisations(); const { handleDelete, deletingItems } = useTrusteeOrganisationOperations(); const { canCreate, canUpdate, canDelete } = useTablePermission('TrusteeOrganisation'); if (loading) { return
Keine Organisationen vorhanden.
| Label | Status | Aktionen |
|---|---|---|
| {org.label} | {org.enabled ? 'Aktiv' : 'Inaktiv'} | {canUpdate && ( )} {canDelete && ( )} |