Component mockups.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user