aboutsummaryrefslogtreecommitdiff
path: root/components/account.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-16 11:40:36 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-16 11:40:36 +0100
commitd2c2cc62a4c2e1ac10f8434bea7bb834da820869 (patch)
treed8d0ed49957d1103a0fd79d4bb2928d7e1b5846e /components/account.tsx
parentbe52cd3265f93b09fc400ecaa58cde0a93ed41e6 (diff)
semi working next project
Diffstat (limited to 'components/account.tsx')
-rw-r--r--components/account.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/components/account.tsx b/components/account.tsx
new file mode 100644
index 0000000..e6ec58f
--- /dev/null
+++ b/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"
+ }}/>;
+}
+
+