import { Pencil, RefreshCw } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { ChatMessageBookmark } from "./ChatMessageBookmark"; interface ChatMessageActionsProps { role: "user" | "assistant" | "system"; isStreaming?: boolean; onEdit?: () => void; onRetry?: () => void; onBookmark?: () => void; isBookmarked?: boolean; } export function ChatMessageActions({ role, isStreaming, onEdit, onRetry, onBookmark, isBookmarked }: ChatMessageActionsProps) { if (isStreaming) return null; if (role === "user" && onEdit) { return (