about summary refs log tree commit diff
path: root/src/view/com/auth/create/StepHeader.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-14 13:03:43 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-14 13:03:43 -0500
commitacf0f80de2a7a96ad8ee58dbf6aa8cb59859c9e8 (patch)
treeea84f4665976b847ea7d32190324f47c1e0b414f /src/view/com/auth/create/StepHeader.tsx
parentd55780f5c333208eaac1d5240929959b131e8787 (diff)
downloadvoidsky-acf0f80de2a7a96ad8ee58dbf6aa8cb59859c9e8.tar.zst
Rework account creation and login views
Diffstat (limited to 'src/view/com/auth/create/StepHeader.tsx')
-rw-r--r--src/view/com/auth/create/StepHeader.tsx22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/view/com/auth/create/StepHeader.tsx b/src/view/com/auth/create/StepHeader.tsx
new file mode 100644
index 000000000..8c852b640
--- /dev/null
+++ b/src/view/com/auth/create/StepHeader.tsx
@@ -0,0 +1,22 @@
+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 type="title-xl">{title}</Text>
+    </View>
+  )
+}
+
+const styles = StyleSheet.create({
+  container: {
+    marginBottom: 20,
+  },
+})