Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { CircleX } from 'lucide-react';
import { cn } from '@/lib/utils';
type VoiceInputStatusNoticeProps = {
message: string;
className?: string;
maxWidthClassName?: string;
};
export function VoiceInputStatusErrorIcon({ className }: { className?: string }) {
return <CircleX className={cn('h-4 w-4 shrink-0 text-[var(--error-fg)]', className)} aria-hidden="true" />;
}
export function VoiceInputStatusNotice({
message,
className,
maxWidthClassName = 'max-w-[640px]',
}: VoiceInputStatusNoticeProps) {
return (
<div
role="alert"
className={cn(
'inline-flex items-center gap-2 rounded-full border border-[var(--cmd-palette-border)] bg-[var(--cmd-palette-bg)] px-4 py-[10px]',
'text-13 font-medium leading-snug text-[var(--cmd-palette-item-text)] shadow-[var(--shadow-menu)]',
maxWidthClassName,
className,
)}
>
<VoiceInputStatusErrorIcon />
<span className="min-w-0 max-w-[calc(100vw-96px)] break-words">
{message}
</span>
</div>
);
}