"use client" import { ReactNode, useTransition } from "react" import { Video, VideoStatus } from "@/app/types" import { setVideoStatus } from "@/server" export function ChangeStatusButton({ video, children, status }: { video: Video; children: ReactNode; status: VideoStatus }) { let [isPending, startTransition] = useTransition() return (