"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export type FeatureStage = "new" | "beta" | "deprecated" | "stable"; export interface VersionBadgeProps extends React.HTMLAttributes { stage: FeatureStage; version?: string; } const STAGE: Record = { new: { label: "Yeni", tone: "border-success/50 bg-success/10 text-success" }, beta: { label: "Beta", tone: "border-warning/50 bg-warning/10 text-warning" }, deprecated: { label: "Deprecated", tone: "border-destructive/50 bg-destructive/10 text-destructive" }, stable: { label: "Stable", tone: "border-border bg-secondary text-secondary-foreground" }, }; /** Release version badge: new / beta / stable / deprecated tones. */ export function VersionBadge({ stage, version, className, ...props }: VersionBadgeProps) { const s = STAGE[stage]; return ( {stage === "new" && ); }