import { u as useDraft } from "./use-page-data.CMUQyNAA.js";
function useDatarecord(datarecordId) {
  const draft = useDraft();
  return draft.site.datarecords?.find((record) => record.id === datarecordId);
}
function useDatarecords() {
  const draft = useDraft();
  return draft.site.datarecords;
}
export {
  useDatarecord as a,
  useDatarecords as u
};
//# sourceMappingURL=use-datarecord.B4fi8Za7.js.map
