import { useDraft } from "../../../../../use-page-data.js";
function useDatasource(id) {
  const draft = useDraft();
  const datasource = draft.site.datasources.find((ds) => ds.id === id);
  return datasource;
}
function useDatasources() {
  const draft = useDraft();
  return draft.site.datasources;
}
export {
  useDatasource,
  useDatasources
};
//# sourceMappingURL=use-datasource.js.map
