From 3f95f98ef90340eb05f7e6d1ca5f43e9a7df6648 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Thu, 19 Jan 2023 14:08:53 -0600
Subject: Change post prompt to a set of buttons (#55)

---
 src/view/com/posts/PromptButtons.tsx | 48 ++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 src/view/com/posts/PromptButtons.tsx

(limited to 'src/view/com/posts/PromptButtons.tsx')

diff --git a/src/view/com/posts/PromptButtons.tsx b/src/view/com/posts/PromptButtons.tsx
new file mode 100644
index 000000000..0e6c500d1
--- /dev/null
+++ b/src/view/com/posts/PromptButtons.tsx
@@ -0,0 +1,48 @@
+import React from 'react'
+import {StyleSheet, TouchableOpacity, View} from 'react-native'
+import {Text} from '../util/text/Text'
+import {usePalette} from '../../lib/hooks/usePalette'
+
+export function PromptButtons({
+  onPressCompose,
+}: {
+  onPressCompose: (imagesOpen?: boolean) => void
+}) {
+  const pal = usePalette('default')
+  return (
+    <View style={[pal.view, pal.border, styles.container]}>
+      <TouchableOpacity
+        testID="composePromptButton"
+        style={[styles.btn, {backgroundColor: pal.colors.backgroundLight}]}
+        onPress={() => onPressCompose(false)}>
+        <Text type="button" style={pal.textLight}>
+          New post
+        </Text>
+      </TouchableOpacity>
+      <TouchableOpacity
+        style={[styles.btn, {backgroundColor: pal.colors.backgroundLight}]}
+        onPress={() => onPressCompose(true)}>
+        <Text type="button" style={pal.textLight}>
+          Share photo
+        </Text>
+      </TouchableOpacity>
+    </View>
+  )
+}
+
+const styles = StyleSheet.create({
+  container: {
+    paddingVertical: 12,
+    paddingBottom: 10,
+    paddingHorizontal: 16,
+    flexDirection: 'row',
+    alignItems: 'center',
+    borderTopWidth: 1,
+  },
+  btn: {
+    paddingVertical: 6,
+    paddingHorizontal: 14,
+    borderRadius: 30,
+    marginRight: 10,
+  },
+})
-- 
cgit 1.4.1

