diff --git a/phone/src/ui/components/AppWrapper.tsx b/phone/src/ui/components/AppWrapper.tsx
index 82fb7bd..52b7b3f 100644
--- a/phone/src/ui/components/AppWrapper.tsx
+++ b/phone/src/ui/components/AppWrapper.tsx
@@ -1,9 +1,46 @@
-import React from 'react';
+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);
-export const AppWrapper = ({ children, style, handleClickAway, ...props }: AppWrapperTypes) => {
return (
+
setOpen(false)}
+ appTitle={'Side Menu Thing'}
+ containerEl={ref.current}
+ items={items}
+ />
{children}
);
diff --git a/phone/src/ui/components/PhoneDrawer.tsx b/phone/src/ui/components/PhoneDrawer.tsx
new file mode 100644
index 0000000..92cfb56
--- /dev/null
+++ b/phone/src/ui/components/PhoneDrawer.tsx
@@ -0,0 +1,115 @@
+import React from 'react';
+import {
+ ListItem,
+ List,
+ ListItemText,
+ ListItemIcon,
+ Drawer,
+ Typography,
+ Box,
+ Divider,
+ Button,
+ useTheme,
+} from '@material-ui/core';
+import { ChevronLeft, Settings } from '@material-ui/icons';
+import { makeStyles, Theme } from '@material-ui/core/styles';
+
+interface DrawerItem {
+ onClick: () => void;
+ text: string;
+ icon?: JSX.Element;
+}
+
+const BackAction = ({ handleClose }) => (
+
+);
+
+interface PhoneDrawer {
+ open: boolean;
+ handleClose: () => void;
+ containerEl: Element;
+ items: DrawerItem[];
+ appTitle?: string;
+}
+
+const useStyles = makeStyles((theme: Theme) => ({
+ sidebarTitle: {
+ marginLeft: 20,
+ color: theme.palette.secondary.contrastText,
+ },
+}));
+
+const PhoneDrawer: React.FC = ({
+ items,
+ open,
+ containerEl,
+ handleClose,
+ appTitle,
+}) => {
+ const theme = useTheme();
+
+ const classes = useStyles();
+
+ return (
+ {}}
+ PaperProps={{ style: { position: 'absolute', width: '70%' } }}
+ BackdropProps={{ style: { position: 'absolute' } }}
+ ModalProps={{
+ container: containerEl,
+ style: { position: 'absolute' },
+ }}
+ variant="temporary"
+ >
+
+
+
+ {appTitle && (
+
+ {appTitle}
+
+ )}
+
+
+ {items.map((item) => (
+ <>
+
+ {item?.icon && {item.icon}}
+
+
+
+ >
+ ))}
+
+
+
+
+ );
+};
+
+export default PhoneDrawer;
diff --git a/phone/src/ui/interface/InterfaceUI.ts b/phone/src/ui/interface/InterfaceUI.ts
index eb5f670..054a753 100644
--- a/phone/src/ui/interface/InterfaceUI.ts
+++ b/phone/src/ui/interface/InterfaceUI.ts
@@ -9,7 +9,9 @@ export interface AppContentTypes {
export interface AppWrapperTypes {
id?: string;
+ appName?: string;
children?: JSX.Element | JSX.Element[];
style?: CSSProperties;
handleClickAway?: (...args: any[]) => void;
+ sideMenu?: string[];
}