import { Link } from "react-router"; import { useTranslation } from "react-i18next"; import { FeatherCalendarClock, FeatherPlus } from "@subframe/core"; import type { BookingPagesListVM } from "@hivegrid/view-models"; import { BadgeFeedback } from "~/ui/components/BadgeFeedback"; import { Button } from "~/ui/components/Button"; import { CopyToClipboardButton } from "~/ui/components/CopyToClipboardButton"; import { EmptyState } from "~/ui/components/EmptyState"; import { Table } from "~/ui/components/Table"; import { useLocaleFormatters } from "~/locale/format"; import { PageHeader } from "../automation/automationUi"; /** * AK-P16b ยท interim booking-pages list (AD-28, archetype A2): title/slug/ * duration/providers/publish state + copyable public URL per page. Final * Subframe optics follow David's D-P16 delta (design-nachzug). */ export interface BookingPagesPageProps { vm: BookingPagesListVM; } export function BookingPagesPage({ vm }: BookingPagesPageProps): React.JSX.Element { const { t } = useTranslation(); const formatters = useLocaleFormatters(); if (vm.status !== "ready" || !vm.data) { return
; } const { rows, canCreate, newHref, emptyHeadlineKey, emptyBodyKey } = vm.data; return (