Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

463 B
Raw Blame
import type { EmailConferencing } from "@rallly/emails";

import type { Conferencing } from "@/features/conferencing/schema";
import { getConferencingUri } from "@/features/conferencing/utils";

export function toEmailConferencing(
  conferencing: Conferencing,
): EmailConferencing {
  return {
    provider: conferencing.provider,
    label: conferencing.provider === "custom" ? conferencing.label : undefined,
    url: getConferencingUri(conferencing),
  };
}