Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

614 B
Raw Blame
import { X } from "lucide-react";

import { cn } from "@/lib/cn";
import { t } from "@/lib/i18n";

/** The × on a warning the person may close, such as the one that says macOS Dictation is off. */
export function DismissWarning({ onDismiss, className }: { onDismiss: () => void; className?: string }) {
  return (
    <button type="button" onClick={onDismiss} aria-label={t("composer.notice.dismiss")} title={t("composer.notice.dismiss")}
      className={cn("ui-icon-button -my-1 size-6 min-h-6 shrink-0 p-0 text-warning touch:size-10", className)}>
      <X size={14} aria-hidden="true" />
    </button>
  );
}