"use client"; import { useRouter } from "next/navigation"; import { Button } from "@/components/ui/button"; import { ConfirmActionButton } from "@/components/shared/confirm-action-button"; import { deletePlanPermanently, togglePlan } from "@/actions/admin/plans"; import { toast } from "sonner"; import { getErrorMessage } from "@/lib/errors"; import { PlanForm, type PlanFormValue, type StreamingServiceOption, } from "./plan-form"; export function PlanActions({ plan, isActive, services, }: { plan: PlanFormValue; isActive: boolean; services: StreamingServiceOption[]; }) { const router = useRouter(); return (