import { slugify } from "../../utils/slugify";
/**
 * Builds a slug for the given IEvent record.
 * @param event An IEvent record
 * @returns the slug for the given IEvent record
 */
export function getEventSlug(event) {
    return ([slugify(event.title), event.id]
        .join("-")
        // remove double hyphens
        .split("-")
        .filter(Boolean)
        .join("-"));
}
//# sourceMappingURL=getEventSlug.js.map