// Primus IQ — Profile Screen
const ProfileTagList = ({ items, editing, onChange, placeholder }) => {
const [input, setInput] = React.useState('');
const add = () => {
const v = input.trim();
if (v && !items.includes(v)) onChange([...items, v]);
setInput('');
};
if (!editing) return (
{items.map(item => (
{item}
))}
setInput(e.target.value)}
onKeyDown={e => { if (e.key === 'Enter') { e.preventDefault(); add(); } }}
placeholder={placeholder}
style={{ flex: 1, height: 34, padding: '0 12px', borderRadius: 8, border: '1px solid var(--line-2)', background: 'white', fontSize: 13, fontFamily: 'inherit', color: 'var(--ink)' }}
/>
);
};
const ProfileInfoCard = ({ title, children }) => (