import { useRosettaColors } from "@/app/hooks/useRosettaColors"; import { useDialog } from "@/app/providers/DialogProvider/useDialog"; import { Menu } from "@mantine/core"; import { IconAlertCircle, IconRefresh, IconTrash } from "@tabler/icons-react"; interface MessageErrorProps { text: string; messageId: string; } export function MessageError(props : MessageErrorProps) { const colors = useRosettaColors(); const {sendMessage, deleteMessageById} = useDialog(); const retry = async () => { deleteMessageById(props.messageId); sendMessage(props.text, []); } const remove = () => { deleteMessageById(props.messageId); } return ( <>
> ); }