import { useDraft } from "../../../../../use-page-data.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,
  useDatarecords
};
//# sourceMappingURL=use-datarecord.js.map
