mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
29 lines
841 B
React
29 lines
841 B
React
|
|
import React from 'react';
|
||
|
|
|
||
|
|
export default function SubmitButton({ onClick, disabled }) {
|
||
|
|
return (
|
||
|
|
<button onClick={onClick} className="absolute bottom-1.5 right-1 rounded-md p-1 text-gray-500 hover:bg-gray-100 disabled:hover:bg-transparent dark:hover:bg-gray-900 dark:hover:text-gray-400 dark:disabled:hover:bg-transparent md:bottom-2.5 md:right-2">
|
||
|
|
<svg
|
||
|
|
stroke="currentColor"
|
||
|
|
fill="none"
|
||
|
|
strokeWidth="2"
|
||
|
|
viewBox="0 0 24 24"
|
||
|
|
strokeLinecap="round"
|
||
|
|
strokeLinejoin="round"
|
||
|
|
className="mr-1 h-4 w-4"
|
||
|
|
height="1em"
|
||
|
|
width="1em"
|
||
|
|
xmlns="http://www.w3.org/2000/svg"
|
||
|
|
>
|
||
|
|
<line
|
||
|
|
x1="22"
|
||
|
|
y1="2"
|
||
|
|
x2="11"
|
||
|
|
y2="13"
|
||
|
|
/>
|
||
|
|
<polygon points="22 2 15 22 11 13 2 9 22 2" />
|
||
|
|
</svg>
|
||
|
|
</button>
|
||
|
|
);
|
||
|
|
}
|