import { CloudProvider, useScheduling } from '@hiyve/react-intelligence';
import { ScheduleForm } from '@hiyve/react-intelligence';
function ScheduleDialog({ onClose }) {
const { create, loading } = useScheduling();
return (
<ScheduleForm
loading={loading}
onSubmit={async (values) => {
const meeting = await create(values);
if (meeting) {
onClose();
}
}}
onCancel={onClose}
/>
);
}
ScheduleForm provides a complete form for creating and editing meetings
For integration with @hiyve/react-intelligence, use the useScheduling() hook and handle submission via the onSubmit callback.