Merge branch 'IDTEAM-remove-bf-ff' into 'main'
[ProtonMail-WebClient.git] / packages / components / helpers / getCustomSizingClasses.ts
blobd8ec0608dd590cbf28675278acaf91e5d0deca25
1 import clsx from '@proton/utils/clsx';
3 export const getCustomSizingClasses = (style?: any): string => {
4     if (!style) {
5         return '';
6     }
7     return clsx([
8         style['--h-custom'] !== undefined && 'h-custom',
9         style['--w-custom'] !== undefined && 'w-custom',
10         style['--top-custom'] !== undefined && 'top-custom',
11         style['--right-custom'] !== undefined && 'right-custom',
12         style['--left-custom'] !== undefined && 'left-custom',
13         style['--bottom-custom'] !== undefined && 'bottom-custom',
14     ]);