1 import { c } from 'ttag';
3 import LayoutCards from '@proton/components/components/input/LayoutCards';
4 import { COMPOSER_MODE } from '@proton/shared/lib/mail/mailSettings';
5 import composerMaximizedSvg from '@proton/styles/assets/img/layout/layout-thumb-composer-maximized.svg';
6 import composerPopUpSvg from '@proton/styles/assets/img/layout/layout-thumb-composer-normal.svg';
8 const { POPUP, MAXIMIZED } = COMPOSER_MODE;
11 composerMode: COMPOSER_MODE;
12 onChange: (composerMode: COMPOSER_MODE) => void;
14 describedByID: string;
19 const ComposerModeCards = ({
28 const layoutCardPopup = {
30 selected: composerMode === POPUP,
33 label: c('Label to change composer mode').t`Normal`,
37 src: composerPopUpSvg,
40 const layoutCardMaximized = {
42 selected: composerMode === MAXIMIZED,
45 label: c('Label to change composer mode').t`Maximized`,
49 src: composerMaximizedSvg,
55 list={[layoutCardPopup, layoutCardMaximized]}
57 liClassName={liClassName}
58 describedByID={describedByID}
64 export default ComposerModeCards;