2023-08-29 01:27:56 +00:00
|
|
|
import Dropdown from 'react-bootstrap/Dropdown'
|
|
|
|
import styles from './item.module.css'
|
|
|
|
import MoreIcon from '../svgs/more-fill.svg'
|
|
|
|
|
|
|
|
export default function ActionDropdown ({ children }) {
|
|
|
|
if (!children) {
|
|
|
|
return null
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
<Dropdown className={`pointer ${styles.dropdown}`} as='span'>
|
2023-10-04 01:12:12 +00:00
|
|
|
<Dropdown.Toggle variant='success' as='a' onPointerDown={e => e.preventDefault()}>
|
2023-08-29 01:27:56 +00:00
|
|
|
<MoreIcon className='fill-grey ms-1' height={16} width={16} />
|
|
|
|
</Dropdown.Toggle>
|
|
|
|
<Dropdown.Menu>
|
|
|
|
{children}
|
|
|
|
</Dropdown.Menu>
|
|
|
|
</Dropdown>
|
|
|
|
)
|
|
|
|
}
|