import { useEditor, useValue } from "@cmpd/editor";
function useReadonly() {
  const editor = useEditor();
  return useValue("isReadonlyMode", () => editor.getInstanceState().isReadonly, [editor]);
}
export {
  useReadonly
};
//# sourceMappingURL=useReadonly.mjs.map
