"use client"; import { fmtCurrency, fmtLarge, fmtPct } from "@/lib/format"; import type { DcfComputed } from "@/lib/dcf"; import type { DcfResult } from "@/types/api"; type Props = { dcf: DcfResult; computed: DcfComputed | { error: string } | null; livePrice: number | null; sharesOutstanding: number | null; currency: string; }; export function DcfResults({ dcf, computed, livePrice, sharesOutstanding, currency }: Props) { return (
{computed.error}
) : ( <>