import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { getPortfolioPositions } from '@/actions/portfolio'; import { formatQuantity } from '@/lib/formatters'; export default async function DashboardPage() { const positions = await getPortfolioPositions(); return (

欢迎来到 Omniledger

您的跨界记账中枢。

{positions.length === 0 ? (

暂无持仓,请先添加资产和交易记录。

) : ( positions.map((pos) => ( {pos.symbol} {pos.type}
持仓数量 {formatQuantity(pos.quantity, pos.type)}
结算币种 {pos.baseCurrency}
)) )}
); }