import { kinds } from "nostr-tools";
import { blueprint } from "../index.js";
import { addEvent, setTitle } from "../operations/calendar.js";
/** Creates a calendar event with a title and optional events */
export function CalendarBlueprint(title, events) {
    return blueprint(kinds.Calendar, setTitle(title), ...(events?.map((event) => addEvent(event)) ?? []));
}
