2022-04-01 15:29:03 +00:00
|
|
|
import { BUBBLE_DESIGN, DARK_MODE, WIDGET_DESIGN } from './constants';
|
2022-02-25 10:48:18 +00:00
|
|
|
|
|
|
|
export const getBubbleView = type =>
|
|
|
|
BUBBLE_DESIGN.includes(type) ? type : BUBBLE_DESIGN[0];
|
|
|
|
|
|
|
|
export const isExpandedView = type => getBubbleView(type) === BUBBLE_DESIGN[1];
|
|
|
|
|
|
|
|
export const getWidgetStyle = style =>
|
|
|
|
WIDGET_DESIGN.includes(style) ? style : WIDGET_DESIGN[0];
|
|
|
|
|
|
|
|
export const isFlatWidgetStyle = style => style === 'flat';
|
2022-04-01 15:29:03 +00:00
|
|
|
|
|
|
|
export const getDarkMode = darkMode =>
|
|
|
|
DARK_MODE.includes(darkMode) ? darkMode : DARK_MODE[0];
|