import { Link } from "react-router"; import { cn } from "@/editor/lib/utils"; export type BannerProps = { text: string; ctaLabel: string; ctaHref: string; tone: "default" | "inverse" | "muted"; }; export function Banner({ text, ctaLabel, ctaHref, tone }: BannerProps) { const toneClass: Record = { default: "bg-foreground text-background", inverse: "bg-background text-foreground border-y border-border", muted: "bg-muted text-foreground border-y border-border", }; return (
{text} {ctaLabel ? ( {ctaLabel} → ) : null}
); }