// Primus IQ — Chat screen components const ChatMsgBubble = ({ msg }) => { const isHuman = msg.role === 'human'; return (
{!isHuman && (
P
)}
{msg.content}
); }; const ChatThinking = ({ message }) => (
P
{message || 'Thinking…'}
); const ChatComposer = ({ onSend, disabled }) => { const [val, setVal] = React.useState(''); const [focused, setFocused] = React.useState(false); const submit = () => { const t = val.trim(); if (!t || disabled) return; setVal(''); onSend(t); }; const onKD = (e) => { if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); submit(); } }; return (