Add sidebar component

This commit is contained in:
Hazem Krimi
2021-04-28 21:26:14 +01:00
parent 9335214939
commit 348f454878
2 changed files with 36 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { useReactiveVar } from '@apollo/client';
import { roleVar } from '../../graphql/state';
import { IconButton } from '..';
import { Add } from '../../assets';
import { Wrapper } from './styles';
const Sidebar = () => {
const role = useReactiveVar(roleVar);
return (
<Wrapper color={role}>
<IconButton icon={<Add />} color={role} onClick={() => {}} />
</Wrapper>
);
};
export default Sidebar;