/** WEB-0b: Übersicht der Webseiten-Seiten mit Status (Entwurf/Veröffentlicht). */ import { Link } from 'react-router-dom' import { de } from '../strings/de' import { listPages, type PageStatus } from '../api/pages' import { useApi } from '../hooks/useApi' import './webseite.css' function StatusBadge({ status }: { status: PageStatus }) { const t = de.pages.webseite const published = status === 'Published' return ( {published ? t.statusPublished : t.statusDraft} ) } export default function WebseitePage() { const t = de.pages.webseite const pages = useApi(() => listPages(), []) if (pages.loading) return
{de.common.loading}
if (pages.error || !pages.data) { return ({t.intro}
{t.empty}
) : (