import { BackLink } from "@/components/back-link"; import { getLocale } from "@/i18n/locale"; import { getSponsorshipAdminStrings } from "@/i18n/sponsorship/admin"; import { createSponsorshipOfferAction } from "@/app/admin/actions"; import { EMPTY_OFFER, OfferForm } from "../../_components/offer-form"; import { currentHoneyFor } from "../../_lib/offer-overview"; import { getEligibleHoneyStock } from "../../_lib/coverage"; export default async function AdminSponsorshipOfferNewPage() { const t = getSponsorshipAdminStrings(await getLocale()); // Vorschau der automatischen Wahl fuer ein Glas — die echte Wahl richtet // sich nach den Glaesern des Angebots und faellt bei jeder Bestellung neu. const currentHoney = currentHoneyFor(await getEligibleHoneyStock(), 1); return (