import { AdminStatusBadge } from "@/components/admin/admin-status-badge";
import { resolveAdminStatusTone } from "@/lib/admin-status-tone";

export function DrawStatusBadge({
  status,
  label,
}: {
  status: string;
  /** 可与 DB 不同时展示预览态文案 */
  label?: string;
}) {
  return (
    <AdminStatusBadge status={status} tone={resolveAdminStatusTone(status)}>
      {label ?? status}
    </AdminStatusBadge>
  );
}
