The easiest way is to copy the code Termly provides and loadit as HTML:
export default function Terms() {
const termlyPolicy = `
// PASTE HERE THE CODE FROM TERMLY
`;
return <div className="p-6" dangerouslySetInnerHTML={{ __html: termlyPolicy }} />
}