import React, { createContext, useRef, useState } from 'react';
import { AppWrapperTypes } from '../interface/InterfaceUI';
import { Computer } from '@material-ui/icons';
import PhoneDrawer from './PhoneDrawer';
const items = [
{
onClick: () => console.log(),
icon: ,
text: 'Item Thing',
},
{
onClick: () => console.log(),
icon: ,
text: 'Item Thing',
},
{
onClick: () => console.log(),
icon: ,
text: 'Item Thing',
},
{
onClick: () => console.log(),
icon: ,
text: 'Item Thing',
},
];
export const AppWrapper = ({
children,
style,
handleClickAway,
sideMenu,
appName,
...props
}: AppWrapperTypes) => {
const ref = useRef();
const [open, setOpen] = useState(false);
return (
setOpen(false)}
appTitle={'Side Menu Thing'}
containerEl={ref.current}
items={items}
/>
{children}
);
};