feat(validator onboarding): create `BackButton.tsx`
This commit is contained in:
parent
499f2c1531
commit
d6daf9d84f
|
@ -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…
Reference in New Issue