import { prisma } from '@innungsapp/shared' import Link from 'next/link' import { ExternalLink, Settings, Layout, Search } from 'lucide-react' export default async function LandingPagesOverview({ searchParams, }: { searchParams: Promise<{ q?: string }> }) { const { q = '' } = await searchParams const organizations = await prisma.organization.findMany({ where: q ? { OR: [ { name: { contains: q } }, { slug: { contains: q } }, ] } : {}, orderBy: { name: 'asc' }, }) return (
{/* Header */}

Landingpage-Verwaltung

Alle Mandanten-Landingpages auf einen Blick verwalten.

{/* Grid */}
{organizations.length === 0 ? (

Keine Landingpages gefunden.

{q && Suche zurücksetzen}
) : ( organizations.map((org) => (
{/* Accent line */}

{org.name}

/ {org.slug}
Status Online
{org.landingPageTitle || 'Standard-Title'}
Ansehen Editieren
)) )}
) }