Get chat view started

This commit is contained in:
Jon Staab
2024-08-15 14:30:55 -07:00
parent 184634c6e8
commit 437cfa7bc4
10 changed files with 195 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
<script lang="ts">
import cx from 'classnames'
import Icon from "@lib/components/Icon.svelte"
export let src
export let size = 7
</script>
<div
class={cx($$props.class, "!flex items-center justify-center rounded-full overflow-hidden")}
style={`width: ${size * 4}px; height: ${size * 4}px;`}>
{#if src}
<img alt="" {src} />
{:else}
<Icon icon="user-rounded" size={Math.round(size * .7)} />
{/if}
</div>