Files
EpicNext-Cms/src/components/admin/ticket-queue-banner.tsx
T
Simo b1ddda66ff
CI / check (push) Successful in 27s
CI / release (push) Skipped
CI / deploy (push) Successful in 43s
Revert "Merge pull request 'Complete Housekeeping migration and /ase cutover' (#52) from codex/housekeeping-complete into main"
This reverts commit 488b6e57c4, reversing
changes made to b506b4499a.
2026-08-30 21:31:34 +02:00

36 lines
861 B
TypeScript

import Link from "@/components/link";
/** Shared clarity banner for dual ticket products (CMS desk vs help-center). */
export function TicketQueueBanner({
hint,
otherHref,
otherLabel,
countsLine,
}: {
hint: string;
otherHref: string;
otherLabel: string;
/** Optional preformatted open-count summary (locale-aware from caller). */
countsLine?: string;
}) {
return (
<div
className="rounded-lg border border-[var(--admin-info-border)] bg-[var(--admin-info-subtle)] px-4 py-3 text-sm"
role="status"
>
<p className="m-0">{hint}</p>
{countsLine ? (
<p className="m-0 mt-1 text-muted-foreground">{countsLine}</p>
) : null}
<p className="m-0 mt-1">
<Link
href={otherHref}
className="font-medium text-[var(--admin-accent)] underline-offset-2 hover:underline"
>
{otherLabel}
</Link>
</p>
</div>
);
}