import * as React from 'react'; import { useState } from 'react'; import { Container } from '@mantine/core'; import { Input, Tooltip } from '@mantine/core'; import { List } from '@mantine/core'; import { ScrollArea } from '@mantine/core'; import { createStyles } from '@mantine/core'; import { ActionIcon } from '@mantine/core'; import { Menu, Button, Text } from '@mantine/core'; import { useViewportSize } from '@mantine/hooks'; import { IconSend, IconSquareRoundedPlus } from '@tabler/icons-react'; import { IconSettings, IconSearch, IconPhoto, IconMessageCircle, IconTrash, IconArrowsLeftRight } from '@tabler/icons-react'; const useStyles = createStyles((theme, _params, classNames) => ({ panel: { height: '100%', backgroundColor: theme.colors.gray[0], }, menu: { top: 'unset !important', left: '31px !important', bottom: 60, }, icon: { pointerEvents: 'all', }, })); const chatPanel = () => { const [opened, setOpened] = useState(false); const { classes } = useStyles(); const { height, width } = useViewportSize(); const handlePlusBottonClick = (event: React.MouseEvent) => { setOpened(!opened); event.stopPropagation(); }; const handleContainerClick = (event: React.MouseEvent) => { if (opened) { setOpened(false); } }; return ( Clone or download repository from GitHub Install dependencies with yarn To start development server run npm start command Run tests to make sure your changes do not break the build Submit a pull request once you are done Application }>Settings }>Messages }>Gallery } rightSection={⌘K} > Search Danger zone }>Transfer my data }>Delete my account } rightSection={ } /> ); }; export default chatPanel;