finsignal-segment-control
Version:
Segment control and news feed components for React web applications
50 lines (49 loc) • 1.55 kB
TypeScript
import { SegmentOption } from './SegmentControl';
import './newsfeed.css';
export interface FeedItem {
content_id: string;
title?: string | null;
body?: string | null;
type: 'post' | 'signal' | 'news' | 'strategies' | 'trigger' | 'market_vibe' | 'guides';
source: 'user' | 'provider' | 'api';
created_at: string;
score: number;
metadata: {
news?: {
recommendation?: {
text: string;
priceRange: string;
};
stocks?: Array<{
symbol: string;
price: string;
change: string;
changeType: 'positive' | 'negative';
}>;
};
signal?: {
symbol: string;
companyName: string;
metrics: {
buy: string;
entry: string;
takeProfit: string;
stopLoss: string;
};
};
ai_categorization?: {
primaryCategory: string;
tags: string[];
};
};
}
export interface FeedListProps {
feedType?: 'trending' | 'personal' | 'hot';
items?: FeedItem[];
onItemClick?: (item: FeedItem) => void;
className?: string;
segments?: SegmentOption[];
showSegmentControl?: boolean;
onSegmentChange?: (value: string) => void;
}
export declare function FeedList({ feedType, items, onItemClick, className, segments, showSegmentControl, onSegmentChange }: FeedListProps): import("react/jsx-runtime").JSX.Element;