* Chore disable git submodule for web-client and app-backend * Chore add newest source code of app-backend and web-client --------- Co-authored-by: Hien To <tominhhien97@gmail.com>
30 lines
788 B
TypeScript
30 lines
788 B
TypeScript
import Image from "next/image";
|
|
|
|
type Props = {
|
|
onClick: () => void;
|
|
disabled?: boolean;
|
|
};
|
|
|
|
const SendButton: React.FC<Props> = ({ onClick, disabled = false }) => {
|
|
const enabledStyle = {
|
|
backgroundColor: "#FACA15",
|
|
};
|
|
|
|
const disabledStyle = {
|
|
backgroundColor: "#F3F4F6",
|
|
};
|
|
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
style={disabled ? disabledStyle : enabledStyle}
|
|
type="submit"
|
|
className="p-2 gap-[10px] inline-flex items-center rounded-[12px] text-sm font-semibold shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
|
>
|
|
<Image src={"/icons/ic_arrowright.svg"} width={24} height={24} alt="" />
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default SendButton;
|