Files
expenses/web/src/lib/components/ActivityRow.svelte
T
2026-10-20 22:07:11 +02:00

20 lines
493 B
Svelte

<script lang="ts">
import type { Direction } from '../types';
import Amount from './Amount.svelte';
let {
title,
subtitle,
cents,
direction
}: { title: string; subtitle: string; cents: number; direction: Direction } = $props();
</script>
<li class="flex items-center justify-between gap-4 px-5 py-3">
<div class="min-w-0">
<p class="truncate">{title}</p>
<p class="truncate text-sm text-neutral-400">{subtitle}</p>
</div>
<Amount {cents} {direction} showCurrency />
</li>