"use client";

import { AlertBanner } from "@/components/molecules/AlertBanner/AlertBanner";

interface PaymentErrorBannerProps {
  message: string;
  onDismiss: () => void;
}

export function PaymentErrorBanner({ message, onDismiss }: PaymentErrorBannerProps) {
  return (
    <AlertBanner variant="error" title="Payment Error" onClose={onDismiss} role="alert">
      {message}
    </AlertBanner>
  );
}

export type { PaymentErrorBannerProps };
