feat: create NamePlaceholder component

This commit is contained in:
Caidan Williams
2025-07-25 17:18:59 -07:00
parent f58ad8e419
commit 87f2bc5be3
+20 -2
View File
@@ -23,9 +23,9 @@ import {PreviewableUserAvatar, UserAvatar} from '#/view/com/util/UserAvatar'
import { import {
atoms as a, atoms as a,
platform, platform,
TextStyleProp, type TextStyleProp,
useTheme, useTheme,
ViewStyleProp, type ViewStyleProp,
} from '#/alf' } from '#/alf'
import { import {
Button, Button,
@@ -351,6 +351,24 @@ export function NameAndHandlePlaceholder() {
) )
} }
export function NamePlaceholder({style}: ViewStyleProp) {
const t = useTheme()
return (
<View
style={[
a.rounded_xs,
t.atoms.bg_contrast_25,
{
width: '60%',
height: 14,
},
style,
]}
/>
)
}
export function Description({ export function Description({
profile: profileUnshadowed, profile: profileUnshadowed,
numberOfLines = 3, numberOfLines = 3,