"use client"; import { useActionState } from "react"; import { addMemberAction, type AddMemberState } from "./actions"; const initialState: AddMemberState = null; export function AddMemberForm({ roomId }: { roomId: string }) { const boundAction = addMemberAction.bind(null, roomId); const [state, action, pending] = useActionState(boundAction, initialState); return (
); }