summaryrefslogtreecommitdiff
path: root/components/DropDownMenu.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/DropDownMenu.tsx')
-rw-r--r--components/DropDownMenu.tsx28
1 files changed, 0 insertions, 28 deletions
diff --git a/components/DropDownMenu.tsx b/components/DropDownMenu.tsx
deleted file mode 100644
index fbd854b..0000000
--- a/components/DropDownMenu.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import { ChevronDownIcon } from '@chakra-ui/icons'
-import { Button, Menu, MenuButton, MenuItem, MenuList, Portal } from '@chakra-ui/react'
-import React from 'react'
-
-export interface DropDownMenuProps {
- textArray: string[]
- onClickArray: (() => void)[]
- displayValue: string
-}
-
-export const DropDownMenu = (props: DropDownMenuProps) => {
- const { textArray, onClickArray, displayValue } = props
- return (
- <Menu isLazy placement="right">
- <MenuButton as={Button} rightIcon={<ChevronDownIcon />}>
- {displayValue}
- </MenuButton>
- <Portal>
- {' '}
- <MenuList zIndex="popover">
- {textArray.map((option, i) => {
- ;<MenuItem onClick={onClickArray[i]}> {option} </MenuItem>
- })}
- </MenuList>
- </Portal>
- </Menu>
- )
-}