import get from 'lodash/get' ; const inheritFont = typeof window !== 'undefined' && get ( window , 'window.workday.canvas.inheritFontFamily' ) ; const inheritMonoFont = typeof window !== 'undefined' && get ( window , 'window.workday.canvas.inheritMonoFontFamily' ) ; export const fontFamily = inheritFont ? 'inherit' : '"Roboto", "Helvetica Neue", "Helvetica", Arial, sans-serif' ; export const monoFontFamily = inheritMonoFont === true ? 'inherit' : inheritMonoFont || '"Roboto Mono", "Courier New", Courier, monospace' ; example export const fontFamilies = { default : fontFamily , monospace : monoFontFamily , } ; export type CanvasFontFamilies = { /**
     * '"Roboto", "Helvetica Neue", "Helvetica", Arial, sans-serif'
     * unless the font-family is explicitly set in `window.workday.canvas.inheritFontFamily`
     * */ default : typeof fontFamily ; /**
     * '"Roboto Mono", "Courier New", Courier, monospace'
     * unless the font-family is explicitly set in `window.workday.canvas.inheritMonoFontFamily`
     * */ monospace : typeof monoFontFamily ; } ;