diff options
Diffstat (limited to 'src/components/account.tsx')
-rw-r--r-- | src/components/account.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/account.tsx b/src/components/account.tsx new file mode 100644 index 0000000..d643ceb --- /dev/null +++ b/src/components/account.tsx @@ -0,0 +1,16 @@ +interface AccountAvatarProps { + size: number; + image: string; +} + +export function AccountAvatar(props: AccountAvatarProps) { + return <div style={{ + width: props.size, + height: props.size, + backgroundImage: props.image, + backgroundSize: "cover", + display: "inline-block" + }}></div>; +} + + |