mirror of
https://github.com/luxfhe/example-smart-wallet.git
synced 2026-10-30 18:13:16 +00:00
- Remove fhenix/ directories (duplicate of fhe/) - Update all imports to use fhe/ paths - Rename useFhenixReadContracts → useLuxFHEReadContracts
18 lines
758 B
TypeScript
18 lines
758 B
TypeScript
"use client";
|
|
|
|
import { processUnsealables } from "~~/utils/fhe/unsealable";
|
|
import { UnsealableDisplay } from "~~/components/fhe/UnsealableDisplay";
|
|
import { usePortfolioSummaryData } from "~~/services/store/tokensStore";
|
|
|
|
export const PortfolioTotalHeader = () => {
|
|
const { totalValue } = usePortfolioSummaryData();
|
|
const totalValueDisplay = processUnsealables([totalValue], totalVal => `$${totalVal.toFixed(2)}`);
|
|
return (
|
|
<div className="flex flex-col justify-start items-start">
|
|
<div className="text-2xl font-bold">Portfolio Total</div>
|
|
<UnsealableDisplay item={totalValueDisplay} className="text-[60px] font-normal" sealedLength={8} />
|
|
<div className="text-xl text-secondary-content">+1.3% ($10.00)</div>
|
|
</div>
|
|
);
|
|
};
|