import type { ActionAlert } from '~/types/actions';
import { classNames } from '~/utils/classNames';
interface Props {
alert: ActionAlert;
clearAlert: () => void;
postMessage: (message: string) => void;
}
export default function ChatAlert({ alert, clearAlert, postMessage }: Props) {
const { type, title, description, content } = alert;
const iconColor =
type === 'error' ? 'text-bolt-elements-button-danger-text' : 'text-bolt-elements-button-primary-text';
return (
{/* Icon */}
{type === 'error' ? (
) : (
)}
{/* Content */}
{title}
{description}
{/* {content && (
{content}
)} */}
{/* Actions */}
{type === 'error' && (
)}
);
}