Overview
useCreateEvent returns a callable that creates an event. The logged-in user becomes the creator and is auto-added to hostIds. Pass cover and/or gallery to upload images inline — the hook sends multipart/form-data automatically (requires the files-images bundle).
Usage Example
Parameters
online requires url; physical requires address or location; hybrid requires both.Single cover image to upload. Sends multipart. Requires the
files-images bundle.Gallery images to upload (up to 10). Sends multipart. Requires the
files-images bundle.Returns
Returns aPromise<Event> — the created Event with inline rsvpCounts.

