import { u as s } from "./use-editor.BDnIlF7c.js";
function n(t) {
  var a;
  const r = s();
  return (t ? (a = r.datarecords) == null ? void 0 : a[t] : null) ?? null;
}
function c() {
  const t = s(), r = Object.values(t.datarecords ?? {}), o = r.map((a) => ({
    value: a.id,
    label: a.label
  }));
  return {
    datarecords: r,
    options: o
  };
}
export {
  n as a,
  c as u
};
//# sourceMappingURL=use-datarecord.Sa4_fax2.js.map
