Files
classroomio/apps/dashboard/src/lib/features/course/components/course-publish-badge.svelte
T

19 lines
422 B
Svelte
Raw Normal View History

2026-03-18 23:39:12 +01:00
<script lang="ts">
import { Badge } from '@cio/ui/base/badge';
import { t } from '$lib/utils/functions/translations';
interface Props {
isPublished?: boolean;
}
let { isPublished = false }: Props = $props();
</script>
<Badge variant={isPublished ? 'default' : 'outline'}>
{#if isPublished}
{$t('courses.course_card.published')}
{:else}
{$t('courses.course_card.unpublished')}
{/if}
</Badge>