blob: 4b4eb5d23b6a30954298e05f13532b6a9ae65fd6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import React from 'react'
import {StyleSheet, View} from 'react-native'
import {Text} from 'view/com/util/text/Text'
import {usePalette} from 'lib/hooks/usePalette'
export function StepHeader({step, title}: {step: string; title: string}) {
const pal = usePalette('default')
return (
<View style={styles.container}>
<Text type="lg" style={[pal.textLight]}>
{step === '3' ? 'Last step!' : <>Step {step} of 3</>}
</Text>
<Text style={[pal.text]} type="title-xl">
{title}
</Text>
</View>
)
}
const styles = StyleSheet.create({
container: {
marginBottom: 20,
},
})
|