import { Badge } from "../../../../components"; import { RemoteImage } from "../../../../components/ui"; import { colors } from "../../../../theme/colors"; import { Box, Text } from "../../../../ui"; import { dateDetail, intelSourceDomains, tickerSymbol } from "../format"; import type { BuildoutRow } from "../model/types"; import { InlineSources, MarkdownBlock, tickerBadges, type InlineTickerCatalog } from "./ui"; type BuildoutIntel = Extract["item"]; export function IntelDetail({ item, bodyWidth, height, catalog, openTicker, }: { item: BuildoutIntel; bodyWidth: number; height: number; catalog: InlineTickerCatalog; openTicker: (symbol: string) => void; }) { return ( <> {item.type?.trim() && } {item.publishedAt ? {dateDetail(item.publishedAt)} : null} {(item.companies?.length ?? 0) > 0 && ( {tickerBadges({ symbols: item.companies!.map((company) => tickerSymbol(company.ticker) ?? "").filter(Boolean), width: Math.min(bodyWidth, 56), })} )} {item.imageUrl ? ( ) : null} {item.context && item.content && item.context !== item.content ? : null} ); }