style(chat): distinguish empty send button state
This commit is contained in:
@@ -16,17 +16,21 @@ import styles from "./chat-send-button.module.css";
|
||||
|
||||
export interface ChatSendButtonProps {
|
||||
disabled: boolean;
|
||||
hasContent: boolean;
|
||||
onClick: () => void;
|
||||
}
|
||||
|
||||
export function ChatSendButton({
|
||||
disabled,
|
||||
hasContent,
|
||||
onClick,
|
||||
}: ChatSendButtonProps) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className={`${styles.button} ${disabled ? "" : styles.buttonActive}`}
|
||||
className={`${styles.button} ${
|
||||
hasContent && !disabled ? styles.buttonActive : styles.buttonEmpty
|
||||
}`}
|
||||
disabled={disabled}
|
||||
onClick={onClick}
|
||||
aria-label="Send message"
|
||||
|
||||
Reference in New Issue
Block a user