import { lazy, Suspense } from "react" import { Search } from "lucide-react" import { useSelectionChart } from "../api/selection.query" import { Card } from "@/shared/ui/card" import type { SelectionStockResult } from "../api/selection.types" import { PatternScoreDetails } from "./pattern-score" import { PatternCaseImage } from "./pattern-case-image" import { getStockBasicMetrics } from "./selection-presentation" const SelectionChart = lazy(() => import("./selection-chart").then((module) => ({ default: module.SelectionChart, })), ) interface SignalDetailPanelProps { stock: SelectionStockResult | undefined } export function SignalDetailPanel({ stock }: SignalDetailPanelProps) { const chartQuery = useSelectionChart(stock?.ts_code, stock?.target_trade_date) if (!stock) { return ( 暂无选中股票 从左侧列表选择一只股票查看详情。 ) } const metricRows = [ ...getStockBasicMetrics(stock), { key: "target_trade_date", label: "目标交易日", value: stock.target_trade_date, }, { key: "strategy", label: "策略", value: "知行 B1" }, ] return ( ) }
暂无选中股票
从左侧列表选择一只股票查看详情。