platform/plugins/contact-resources/src/components/EmployeeStatusDueDatePopup.svelte

24 lines
580 B
Svelte
Raw Normal View History

<script lang="ts">
import { Icon, IconDPCalendarOver, IconDPCalendar, Label } from '@hcengineering/ui'
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>