"use client"; import { Button } from "@/components/ui/button"; import { ConfirmActionButton } from "@/components/shared/confirm-action-button"; import { getErrorMessage } from "@/lib/errors"; import { activateSubscription, deleteSubscriptionPermanently, suspendSubscription, } from "@/actions/admin/subscriptions"; import { toast } from "sonner"; import { StreamingSlotDialog, type StreamingServiceOption, } from "./streaming-slot-dialog"; export function AdminSubscriptionActions({ subscriptionId, status, type, streamingServices, }: { subscriptionId: string; status: "ACTIVE" | "EXPIRED" | "CANCELLED" | "SUSPENDED"; type: "PROXY" | "STREAMING"; streamingServices: StreamingServiceOption[]; }) { return (