import { u as useDraft } from "./use-page-data.BgY0vKG4.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.CMdDPiVO.js.map
