mirror of
https://github.com/acedanger/finance.git
synced 2025-12-06 07:00:13 -08:00
Initial commit - Basic bank transactions dashboard structure with Astro and TypeScript
This commit is contained in:
14
src/components/AccountSummary.astro
Normal file
14
src/components/AccountSummary.astro
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
import { formatCurrency } from '../utils'; // We'll create this util
|
||||
import type { Account } from '../types';
|
||||
|
||||
interface Props {
|
||||
account: Account;
|
||||
}
|
||||
const { account } = Astro.props;
|
||||
---
|
||||
<div class="account-summary">
|
||||
<h4>Account Summary</h4>
|
||||
<p>Balance: <span id="account-balance">{formatCurrency(account.balance)}</span></p>
|
||||
<!-- Add more summary info if needed -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user