diff --git a/src/components/Composer.tsx b/src/components/Composer.tsx index fcd38f7..5ab7e23 100644 --- a/src/components/Composer.tsx +++ b/src/components/Composer.tsx @@ -1,9 +1,11 @@ import { StyleSheet, TextInput, View } from "react-native"; import { Text } from "./primitive/Text"; +import { Button } from "./primitive/Button"; import { useContext, useEffect, useMemo, useState } from "react"; import { AuthContext } from "../context/AuthContext"; import { Profile, resolveProfile } from "../lib/profile"; import { RichTextEditor } from "../lib/richtext/editor"; +import { useRouter } from "expo-router"; const styles = StyleSheet.create({ composerHeader: { @@ -30,8 +32,17 @@ const styles = StyleSheet.create({ borderBottomWidth: 1, borderColor: "#313131", }, - composerEditBox: { - color: "#fff", + + composerFooter: { + backgroundColor: "#434343", + padding: 10, + paddingHorizontal: 15, + gap: 10, + flexDirection: "row", + justifyContent: "flex-end", + + borderBottomWidth: 1, + borderColor: "#313131", }, }); @@ -51,19 +62,44 @@ function ComposerHeader() { } function ComposerBody() { - return ( - + + + ); +} + +function ComposerFooter({ + onPublish, + onCancel, +}: { + onPublish: () => void; + onCancel: () => void; +}) { + return ( + +