项目文件夹

文件
2026-07-13 12:38:34 +08:00

18 行
725 B
TypeScript

/**
* "Legacy" badge rendered at the top of a docs page (under the title) when the
* page frontmatter sets `legacy: true` — for guides superseded by sessions but
* kept for existing integrations. The "Written <date>" stamp is separate (see
* the `written` frontmatter field), so a current, dated guide can show its date
* without being marked legacy.
*/
export function LegacyBadge() {
return (
<span
title="Legacy: superseded by sessions; kept for existing integrations"
className="not-prose inline-flex w-fit items-center gap-1.5 rounded-md border border-fd-border bg-fd-muted px-2 py-0.5 text-xs font-medium uppercase tracking-wide text-fd-muted-foreground"
>
Legacy
</span>
);
}