/** * Tool Chip Component * @description Displays a tool chip with name, close button, and redirect button */ import { X, ArrowRight } from 'lucide-react'; import type { Tool } from '@/types'; /** * ToolChip component props */ interface ToolChipProps { /** Tool object to display */ tool: Tool; /** Callback when delete button is clicked */ onDelete: (id: string) => void; /** Callback when redirect button is clicked */ onRedirect: (id: string) => void; } /** * ToolChip component * @description Chip component for displaying tools with delete and redirect actions * Matches Figma design with exact styling * @param tool - The tool object containing id, name, and color * @param onDelete - Callback function called when delete button is clicked, receives tool id * @param onRedirect - Callback function called when redirect button is clicked, receives tool id * @returns {JSX.Element} A chip component displaying the tool with action buttons */ export function ToolChip({ tool, onDelete, onRedirect }: ToolChipProps): JSX.Element { return (
{tool.name}