feat(advanced-dropdown-menu): create component
This commit is contained in:
parent
8700c95c24
commit
ec4bef977e
|
@ -0,0 +1,23 @@
|
|||
import { DropdownMenu } from '@status-im/components'
|
||||
|
||||
import { VALIDATOR_SETTINGS_CARDS_TITLES } from '../../../../constants'
|
||||
import ValidatorSettingCard from './ValidatorSettingCard'
|
||||
|
||||
type CardTitle = (typeof VALIDATOR_SETTINGS_CARDS_TITLES)[number]
|
||||
|
||||
type AdvancedDropdownMenuProps = {
|
||||
title: CardTitle
|
||||
}
|
||||
|
||||
const AdvancedDropdownMenu = ({ title }: AdvancedDropdownMenuProps) => {
|
||||
return (
|
||||
<DropdownMenu>
|
||||
<ValidatorSettingCard title={title} />
|
||||
<DropdownMenu.Content>
|
||||
<DropdownMenu.Item label="Deposit" onSelect={() => {}} />
|
||||
</DropdownMenu.Content>
|
||||
</DropdownMenu>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdvancedDropdownMenu
|
Loading…
Reference in New Issue