2022-05-12 07:05:26 +00:00
|
|
|
<script lang="ts">
|
2022-09-21 08:08:25 +00:00
|
|
|
import { Icon, IconDPCalendarOver, IconDPCalendar, Label } from '@hcengineering/ui'
|
2022-05-12 07:05:26 +00:00
|
|
|
import contact from '../plugin'
|
|
|
|
|
|
|
|
export let isOverdue: boolean = false
|
|
|
|
export let formattedDate: string | undefined
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="iconContainer">
|
|
|
|
<Icon icon={isOverdue ? IconDPCalendarOver : IconDPCalendar} size={'full'} />
|
|
|
|
{#if formattedDate}
|
|
|
|
<div>{formattedDate}</div>
|
|
|
|
{:else}
|
|
|
|
<Label label={contact.string.NoExpire} />
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.iconContainer {
|
|
|
|
color: var(--content-color);
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
</style>
|