Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

MediaSourceCaption.tsx

18 lines508 Bytes

1import { ScrollView } from "react-native";
2​
3import { AppText } from "./ui/AppText";
4​
5export function MediaSourceCaption(props: { readonly source: string | undefined }) {
6 if (!props.source) return null;
7 return (
8 <ScrollView
9 style={{ maxHeight: 88, flexGrow: 0 }}
10 contentContainerStyle={{ paddingHorizontal: 16, paddingBottom: 8 }}
11 nestedScrollEnabled
12 >
13 <AppText selectable className="text-xs text-white/70">
14 {props.source}
15 </AppText>
16 </ScrollView>
17 );