diff options
author | Caidan Williams <caidan@internet.dev> | 2025-07-25 17:18:59 -0700 |
---|---|---|
committer | Caidan Williams <caidan@internet.dev> | 2025-07-29 17:37:01 -0700 |
commit | 87f2bc5be3b082d6dfb79108e688f9402ca7c996 (patch) | |
tree | 7afba790bd216467cb484fd191719cb2f9dddaea /src | |
parent | f58ad8e4199eacf922dfe0bc3d41fd948677b6bd (diff) | |
download | voidsky-87f2bc5be3b082d6dfb79108e688f9402ca7c996.tar.zst |
feat: create NamePlaceholder component
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ProfileCard.tsx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 4e135c8a2..99a68083a 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -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, |