import { i as assertIsOperationalHubProfileDocument, o as isOperationalHubProfileDocument } from "./document-schema-DUJorxA0.js";
import { O as useSelectedDocument, _ as useDocumentsInSelectedFolder, g as useDocumentsInSelectedDrive, p as useDocumentById } from "./dist-mx7YTOSV.js";
//#region document-models/operational-hub-profile/v1/hooks.ts
/** Hook to get a OperationalHubProfile document by its id */
function useOperationalHubProfileDocumentById(documentId) {
	const [document, dispatch] = useDocumentById(documentId);
	if (!isOperationalHubProfileDocument(document)) return [void 0, void 0];
	return [document, dispatch];
}
/** Hook to get the selected OperationalHubProfile document */
function useSelectedOperationalHubProfileDocument() {
	const [document, dispatch] = useSelectedDocument();
	assertIsOperationalHubProfileDocument(document);
	return [document, dispatch];
}
/** Hook to get all OperationalHubProfile documents in the selected drive */
function useOperationalHubProfileDocumentsInSelectedDrive() {
	return useDocumentsInSelectedDrive()?.filter(isOperationalHubProfileDocument);
}
/** Hook to get all OperationalHubProfile documents in the selected folder */
function useOperationalHubProfileDocumentsInSelectedFolder() {
	return useDocumentsInSelectedFolder()?.filter(isOperationalHubProfileDocument);
}
//#endregion
export { useSelectedOperationalHubProfileDocument as i, useOperationalHubProfileDocumentsInSelectedDrive as n, useOperationalHubProfileDocumentsInSelectedFolder as r, useOperationalHubProfileDocumentById as t };

//# sourceMappingURL=hooks-BQaATsSq.js.map