|
|
@ -16,15 +16,15 @@ export default function suggetbar({ suggest }) { |
|
|
|
const Row = ({ row }) => { |
|
|
|
const Row = ({ row }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="chat-suggest__row d-flex"> |
|
|
|
<div className="chat-suggest__row d-flex"> |
|
|
|
<Suggest item={row[0]} /> |
|
|
|
{/* <Suggest item={row[0]} /> */} |
|
|
|
{/* {row.map((item, i) => ( |
|
|
|
{row.map((item, i) => ( |
|
|
|
<Suggest item={item} key={i} /> |
|
|
|
<Suggest item={item} key={i} /> |
|
|
|
))} */} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const Suggest = (item) => { |
|
|
|
const Suggest = ({ item }) => { |
|
|
|
console.log(item.text); |
|
|
|
console.log(item.text); |
|
|
|
return <div className="chat-suggest__row--item d-flex">{item.text}</div>; |
|
|
|
return <div className="chat-suggest__row--item d-flex">{item.text}</div>; |
|
|
|
}; |
|
|
|
}; |
|
|
|