ReactJS
1import React from 'react';
2import styles from './menu.css';
3import {Dropdown} from "../../../Dropdown";
4import {EColors, Text} from '../../../Text'
5import {MenuItemList} from "./MenuItemList";
6import {EIcons, Icon} from "../../../Icon";
7
8
9export function Menu() {
10return (
11<div className={styles.menu}>
12<Dropdown button={
13<button className={styles.menuButton}>
14<Icon name={EIcons.menu} size={5}/>
15</button>
16}
17>
18<div className={styles.dropdown}>
19<MenuItemList postId={'1234'}/>
20<button className={styles.closeButton}>
21<Text mobileSize={12} size={14} color={EColors.grey66}>
22Закрыть
23</Text>
24</button>
25</div>
26</Dropdown>
27</div>
28);
29}
30