Open History to see the last commit
1import type { ReactNode } from "react";
2import { View } from "react-native";
3
4/**
5 * What stands where the composer would for a thread that takes no messages. `children` say what
6 * the thread is and how it is doing, then any actions.
7 */
8export function ReadOnlyComposerBar(props: { readonly children: ReactNode }) {
9 return (
10 // The Button's pill radius plus the 8px + 1px border inset, so its corner runs concentric.
11 // Fixed rather than rounded-full: large text would otherwise grow the curve into the text.
12 <View className="flex-row items-center gap-3 rounded-[31px] android:rounded-[33px] border border-border-subtle bg-card-alt py-2 pe-2 ps-4">
13 {props.children}
14 </View>
15 );
16}