feat: create separated card for rec mechanism

This commit is contained in:
RadoslavDimchev 2023-08-28 13:34:37 +03:00
parent 60d4cdc7e4
commit 7ba8c9109d
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
import { Text } from '@status-im/components'
type RecoveryMechanismProps = {
value: string
selectedRecoveryMechanism: string
handleRecoveryMechanismChange: (value: string) => void
}
const RecoveryMechanismCard = ({
value,
selectedRecoveryMechanism,
handleRecoveryMechanismChange,
}: RecoveryMechanismProps) => {
return (
<div
style={{
border: `1px solid ${selectedRecoveryMechanism === value ? '#2A4AF566' : '#DCE0E5'}`,
borderRadius: '0.5rem',
padding: '6px 12px',
cursor: 'pointer',
backgroundColor: selectedRecoveryMechanism === value ? '#f4f6fe' : '#fff',
}}
onClick={() => handleRecoveryMechanismChange(value)}
>
<Text size={15} weight={'semibold'}>
{value}
</Text>
</div>
)
}
export default RecoveryMechanismCard