"use server"; import { addAction, updateAction, deleteAction } from "@/app/_lib/actions"; const entity = "voice"; const table = "VoiceLine"; export const addVoiceLineAction = async ( currentState: any, formData: FormData, ) => { return addAction({ entity, table, fields: ["name"], currentState, formData, }); }; export const updateVoiceLineAction = async ( currentState: any, formData: FormData, ) => { return updateAction({ entity, table, fields: ["name"], currentState, formData, }); }; export const deleteVoiceLineAction = async (id: string) => { return deleteAction({ entity, table, id }); };