/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
import { addModalEntry, closeModalEntry, updateModalEntry } from "./modalStore.js";
//#region src/components/client/Modal/createModal.tsx
function createModal(args) {
	const id = addModalEntry(args);
	return {
		update(next) {
			updateModalEntry(id, next);
		},
		close() {
			closeModalEntry(id);
		}
	};
}
//#endregion
export { createModal };
