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 {
atoms as a,
platform,
TextStyleProp,
type TextStyleProp,
useTheme,
ViewStyleProp,
type ViewStyleProp,
} from '#/alf'
import {
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({
profile: profileUnshadowed,
numberOfLines = 3,