28 lines
638 B
TypeScript
Raw Normal View History

2024-03-23 22:19:49 +00:00
import React from "react"
import { Drawer, DrawerBody, DrawerContent, Flex } from "@chakra-ui/react"
2024-03-23 22:19:49 +00:00
export const ProfileDrawer = (props) => {
const navItems = ["settings"]
const onClose = React.useCallback(() => {
// nothing
}, [])
return (
<Drawer
isOpen={props?.isOpen}
onClose={onClose}
2024-03-23 22:19:49 +00:00
placement="right"
size="md"
>
2024-03-23 22:19:49 +00:00
<DrawerContent className="ProfileDrawer" maxWidth="90%" marginTop="35px">
<DrawerBody>
{navItems.map((item, idx) => {
return <Flex key={idx}>{item}</Flex>
})}
</DrawerBody>
</DrawerContent>
</Drawer>
)
}