mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00:00
15 lines
392 B
Svelte
15 lines
392 B
Svelte
<script lang="ts">
|
|
import { themeStore } from '@hcengineering/ui'
|
|
import { WorkSlot } from '@hcengineering/time'
|
|
import { calculateEventsDuration, formatEventsDuration } from '../utils'
|
|
|
|
export let events: WorkSlot[]
|
|
|
|
let duration: string
|
|
$: formatEventsDuration(calculateEventsDuration(events), $themeStore.language).then((res) => {
|
|
duration = res
|
|
})
|
|
</script>
|
|
|
|
{duration}
|