diff --git a/packages/ui/components/common/submit-button.tsx b/packages/ui/components/common/submit-button.tsx index 1ea02339b8..69d604ee13 100644 --- a/packages/ui/components/common/submit-button.tsx +++ b/packages/ui/components/common/submit-button.tsx @@ -3,7 +3,6 @@ import type { ReactNode } from "react"; import { ArrowUp, Loader2, Square } from "lucide-react"; import { Button } from "@multica/ui/components/ui/button"; -import { cn } from "@multica/ui/lib/utils"; import { Tooltip, TooltipContent, @@ -16,12 +15,6 @@ interface SubmitButtonProps { loading?: boolean; running?: boolean; onStop?: () => void; - /** - * Button silhouette. `"rounded"` (default) keeps the rounded-square used by - * issue comment composers; `"circle"` makes it a fully-round pill — the - * Chat V2 look. Opt-in so shared callers keep their existing shape. - */ - shape?: "rounded" | "circle"; /** * Tooltip shown over the send button when idle. Pass a string or a node * (e.g. `Send · ⌘↵`). Omit to render no tooltip. @@ -41,12 +34,10 @@ function SubmitButton({ onStop, tooltip, stopTooltip, - shape = "rounded", }: SubmitButtonProps) { - const shapeClass = shape === "circle" ? "rounded-full" : undefined; if (running) { const stopButton = ( - ); @@ -62,7 +53,7 @@ function SubmitButton({ const submitButton = ( + disabled={isEmpty} + loading={submitting} + tooltip={`${t(($) => $.comment.send_tooltip)} · ${formatShortcut(modKey, enterKey)}`} + /> {isDragOver && }