blog/frontend/src/lib/label/framework/ui/LabelOverallDashboardTabelRow.svelte
2025-10-15 20:42:00 +08:00

24 lines
714 B
Svelte

<script lang="ts">
import { TableCell, TableRow } from '$lib/common/framework/components/ui/table';
import type { LabelViewModel } from '$lib/label/adapter/presenter/labelViewModel';
import ColorCode from '$lib/label/framework/ui/ColorCode.svelte';
import PostLabel from '$lib/label/framework/ui/PostLabel.svelte';
const { label }: { label: LabelViewModel } = $props();
</script>
<TableRow>
<TableCell>
<a href={`/dashboard/label/${label.id}`} class="font-medium underline">
{label.id}
</a>
</TableCell>
<TableCell><span class="text-wrap">{label.name}</span></TableCell>
<TableCell>
<ColorCode color={label.color} />
</TableCell>
<TableCell>
<PostLabel {label} />
</TableCell>
</TableRow>