| 7 | import { Button } from '@/components/ui/button'; |
| 8 | |
| 9 | interface TradingViewWidgetProps { |
| 10 | title?: string; |
| 11 | scriptUrl: string; |
| 12 | config: Record<string, unknown>; |
| 13 | height?: number; |
| 14 | className?: string; |
| 15 | allowExpand?: boolean; |
| 16 | } |
| 17 | |
| 18 | const TradingViewWidget = ({ title, scriptUrl, config, height = 600, className, allowExpand = false }: TradingViewWidgetProps) => { |
| 19 | const [isExpanded, setIsExpanded] = useState(false); |
nothing calls this directly
no outgoing calls
no test coverage detected