@cmk/fe_utils
Version:
frontend utility library
11 lines (9 loc) • 364 B
text/typescript
import { ExtendedTheme } from '../../../theme/muiTheme'
import { SerializedThemeType } from '../../../types/serializedTheme'
import { serializeTheme } from './serializeTheme'
export const serializeThemes = (
themes: ExtendedTheme[],
project_id: string
): SerializedThemeType[] => {
return themes?.map?.((theme) => serializeTheme(theme, project_id)) ?? []
}