Add Outer export

This commit is contained in:
Eric Bailey
2024-06-27 12:10:14 -05:00
parent 53beb321db
commit 0b404480eb
+10 -2
View File
@@ -57,7 +57,7 @@ export function Card({
const moderation = moderateProfile(profile, moderationOpts)
return (
<View style={[a.flex_1, a.gap_sm]}>
<Outer>
<Header>
<Avatar profile={profile} moderationOpts={moderationOpts} />
<NameAndHandle profile={profile} moderationOpts={moderationOpts} />
@@ -70,10 +70,18 @@ export function Card({
/>
<Description profile={profile} />
</View>
</Outer>
)
}
export function Outer({
children,
}: {
children: React.ReactElement | React.ReactElement[]
}) {
return <View style={[a.flex_1, a.gap_sm]}>{children}</View>
}
export function Header({
children,
}: {