"use client";

import { revokeCellarChoice } from "@/lib/actions/admin";

export function RevokeCellarChoiceButton({ labelId }: { labelId: string }) {
  return (
    <button
      type="button"
      onClick={() => {
        if (confirm("Revoke this label's Cellar Choice award?")) {
          revokeCellarChoice(labelId);
        }
      }}
      className="text-sm text-charcoal/60 hover:text-terracotta hover:underline"
    >
      Revoke
    </button>
  );
}
