import { T as useDocumentById, c as useDocumentsInSelectedFolder, g as useSelectedDocument, s as useDocumentsInSelectedDrive } from "./dist-DFMBprYi.mjs";
import { i as assertIsHealthReportDocument, o as isHealthReportDocument } from "./document-schema-7Cm44odC.mjs";
//#region document-models/health-report/v1/hooks.ts
/** Hook to get a HealthReport document by its id */
function useHealthReportDocumentById(documentId) {
	const [document, dispatch] = useDocumentById(documentId);
	if (!isHealthReportDocument(document)) return [void 0, void 0];
	return [document, dispatch];
}
/** Hook to get the selected HealthReport document */
function useSelectedHealthReportDocument() {
	const [document, dispatch] = useSelectedDocument();
	assertIsHealthReportDocument(document);
	return [document, dispatch];
}
/** Hook to get all HealthReport documents in the selected drive */
function useHealthReportDocumentsInSelectedDrive() {
	return useDocumentsInSelectedDrive()?.filter(isHealthReportDocument);
}
/** Hook to get all HealthReport documents in the selected folder */
function useHealthReportDocumentsInSelectedFolder() {
	return useDocumentsInSelectedFolder()?.filter(isHealthReportDocument);
}
//#endregion
export { useSelectedHealthReportDocument as i, useHealthReportDocumentsInSelectedDrive as n, useHealthReportDocumentsInSelectedFolder as r, useHealthReportDocumentById as t };

//# sourceMappingURL=hooks-BV-sjAqw.mjs.map