| 4 | import { toast } from "sonner"; |
| 5 | |
| 6 | interface WatchlistButtonProps { |
| 7 | symbol: string; |
| 8 | company: string; |
| 9 | isInWatchlist: boolean; |
| 10 | showTrashIcon?: boolean; |
| 11 | type?: "button" | "icon"; |
| 12 | userId?: string; // Made optional for backward compat, but required for actions |
| 13 | onWatchlistChange?: (symbol: string, added: boolean) => void; |
| 14 | } |
| 15 | |
| 16 | const WatchlistButton = ({ |
| 17 | symbol, |
nothing calls this directly
no outgoing calls
no test coverage detected