You can't use dot notation with template strings to access properties in a JavaScript object. Instead, you should use bracket notation like info[name]
to dynamically retrieve nested values.
Here's is an updated version of your code:
<p className="text-sky-400">{info[name]?.title}</p>