mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 10:30:31 +00:00
feat(validator onboarding): create BackButton.tsx
This commit is contained in:
parent
499f2c1531
commit
d6daf9d84f
28
src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx
Normal file
28
src/pages/ValidatorOnboarding/ValidatorSetup/BackButton.tsx
Normal file
@ -0,0 +1,28 @@
|
||||
import { Text } from '@status-im/components'
|
||||
import { Stack, XStack } from 'tamagui'
|
||||
import { ArrowLeftIcon } from '@status-im/icons'
|
||||
import { useState } from 'react'
|
||||
type BackButtonProps = {
|
||||
prevPage: string
|
||||
buttonState: 'disabled' | 'enabled' | 'pressed'
|
||||
}
|
||||
const BackButton = ({ prevPage }: BackButtonProps) => {
|
||||
const [buttonState, setButtonState] = useState('enabled')
|
||||
|
||||
return (
|
||||
<XStack
|
||||
>
|
||||
<Stack
|
||||
}}
|
||||
>
|
||||
<ArrowLeftIcon
|
||||
size={16}
|
||||
></ArrowLeftIcon>
|
||||
</Stack>
|
||||
{prevPage}
|
||||
</Text>
|
||||
</XStack>
|
||||
)
|
||||
}
|
||||
|
||||
export default BackButton
|
Loading…
x
Reference in New Issue
Block a user