"use client"; import { useActionState } from "react"; import { deleteVideoDirAction, type DeleteDirActionResult, } from "../../videoActions"; import { SeededInput } from "../../../../../../components/forms/Field"; export function DeleteVideoDirSection({ slug, videoId, }: { slug: string; videoId: string; }) { const action = deleteVideoDirAction.bind(null, slug, videoId); const [state, formAction] = useActionState( action, undefined, ); return (

Removes data/{videoId}/ and all of its contents. Type the video id to confirm.

{state?.error && (

{state.error}

)}
); }