feat(validator onboarding): create `BackButton.tsx`

This commit is contained in:
Hristo Nedelkov 2024-02-07 14:00:11 +02:00 committed by Emil Ivanichkov
parent 499f2c1531
commit d6daf9d84f
1 changed files with 28 additions and 0 deletions

View 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