mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
24 lines
630 B
Svelte
24 lines
630 B
Svelte
<script lang="ts">
|
|
import { DocumentQuery, WithLookup } from '@anticrm/core'
|
|
import { Component } from '@anticrm/ui'
|
|
import { Viewlet } from '@anticrm/view'
|
|
import { Issue } from '@anticrm/tracker'
|
|
import { viewOptionsStore } from '@anticrm/view-resources'
|
|
|
|
export let viewlet: WithLookup<Viewlet>
|
|
export let query: DocumentQuery<Issue> = {}
|
|
</script>
|
|
|
|
{#if viewlet?.$lookup?.descriptor?.component}
|
|
<Component
|
|
is={viewlet.$lookup.descriptor.component}
|
|
props={{
|
|
config: viewlet.config,
|
|
options: viewlet.options,
|
|
viewlet,
|
|
query,
|
|
viewOptions: $viewOptionsStore
|
|
}}
|
|
/>
|
|
{/if}
|