import * as React from "react" import { cn } from "../ui/utils" interface NewsCardProps extends React.ComponentProps<"div"> { title: string summary?: string source?: string timestamp?: string trend?: "up" | "down" | "neutral" onClick?: () => void } function NewsCard({ title, summary, source, timestamp, trend, onClick, className, ...props }: NewsCardProps) { return (

{title}

{summary && (

{summary}

)}
{source && {source}} {source && timestamp && ·} {timestamp && {timestamp}}
{trend && trend !== "neutral" && ( {trend === "up" ? "▲" : "▼"} )}
) } export { NewsCard } export type { NewsCardProps }