init
This commit is contained in:
commit
d761a10bf7
102 changed files with 4761 additions and 0 deletions
17
lib/components/bio/widgets/TwitchLive.svelte
Normal file
17
lib/components/bio/widgets/TwitchLive.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import GenericSite from './types/GenericSite.svelte';
|
||||
import InteractivePanel from '../elements/InteractivePanel.svelte';
|
||||
import WidgetRenderContainer from '../elements/WidgetRenderContainer.svelte';
|
||||
|
||||
export let data: WidgetTwitchLive;
|
||||
export let preview: WidgetPreviewTwitchLive | undefined = undefined;
|
||||
export let nonInteractive: boolean = false;
|
||||
export let handle: boolean = false;
|
||||
export let isPreview: boolean = false;
|
||||
</script>
|
||||
|
||||
<InteractivePanel preview={isPreview} title="Twitch Live" url={!nonInteractive ? data.url : undefined} {handle}>
|
||||
<WidgetRenderContainer hasPreview={preview != null}>
|
||||
<GenericSite thumbnail={preview?.thumbnail} title={preview?.channel} description={preview?.description} />
|
||||
</WidgetRenderContainer>
|
||||
</InteractivePanel>
|
Loading…
Add table
Add a link
Reference in a new issue