1 import { c } from 'ttag';
3 import LayoutCards from '@proton/components/components/input/LayoutCards';
4 import { VIEW_LAYOUT } from '@proton/shared/lib/mail/mailSettings';
5 import inboxColumnSvg from '@proton/styles/assets/img/layout/layout-thumb-inbox-column.svg';
6 import inboxRowSvg from '@proton/styles/assets/img/layout/layout-thumb-inbox-row.svg';
8 const { COLUMN, ROW } = VIEW_LAYOUT;
11 viewLayout: VIEW_LAYOUT;
12 onChange: (viewLayout: VIEW_LAYOUT) => void;
14 describedByID: string;
19 const ViewLayoutCards = ({ viewLayout, onChange, loading, className, liClassName, describedByID, ...rest }: Props) => {
20 const layoutCardColumn = {
22 selected: viewLayout === COLUMN,
25 label: c('Label to change view layout').t`Column`,
32 const layoutCardRow = {
34 selected: viewLayout === ROW,
37 label: c('Label to change view layout').t`Row`,
47 list={[layoutCardColumn, layoutCardRow]}
49 liClassName={liClassName}
50 describedByID={describedByID}
56 export default ViewLayoutCards;