feat(advanced-dropdown-menu): create component

This commit is contained in:
RadoslavDimchev 2024-04-01 10:08:42 +03:00 committed by Radoslav Dimchev
parent 8700c95c24
commit ec4bef977e
1 changed files with 23 additions and 0 deletions

View File

@ -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