import { getEditorFont } from "@/pages/editor/utils/fonts";

/** Maps editor font ids to CSS font-family names. */
export const getFontFamily = (fontFamily?: string): string => {
  const font = getEditorFont(fontFamily);
  return font?.cssFamily ?? fontFamily ?? "editor-irancell";
};
