mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
17 lines
629 B
TypeScript
17 lines
629 B
TypeScript
|
|
import { SendIcon } from '~/components/svg';
|
||
|
|
|
||
|
|
export default function SendButton({ text }) {
|
||
|
|
return (
|
||
|
|
<button
|
||
|
|
disabled={!text}
|
||
|
|
className="enabled:bg-brand-purple absolute bottom-2.5 right-1.5 rounded-lg rounded-md border border-black p-0.5 p-1 text-white transition-colors enabled:bg-black disabled:bg-black disabled:text-gray-400 disabled:opacity-10 dark:border-white dark:bg-white dark:disabled:bg-white md:bottom-3 md:right-3 md:p-[2px]"
|
||
|
|
data-testid="send-button"
|
||
|
|
type="submit"
|
||
|
|
>
|
||
|
|
<span className="" data-state="closed">
|
||
|
|
<SendIcon size={24} />
|
||
|
|
</span>
|
||
|
|
</button>
|
||
|
|
);
|
||
|
|
}
|