Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const LearningPathStepLicense = ({ learningPathStep, copyright }) => {
if (!learningPathStep.license || !learningPathStep.license.license) {
return null;
}
const license = getLicenseByAbbreviation(learningPathStep.license.license);
const licenseText =
license.rights.length === 0 ? (
polyglot.t('learningPathStep.license', {
license: learningPathStep.license.description,
})
) : (
);
return (
<span>
{learningPathStep.license.url ? (
<div>
</div></span>