MCPcopy Create free account
hub / github.com/Open-Dev-Society/OpenStock / WatchlistButtonProps

Interface WatchlistButtonProps

components/WatchlistButton.tsx:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { toast } from "sonner";
5
6interface 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
16const WatchlistButton = ({
17 symbol,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected