Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const LinkIcon: React.SFC = props => {
const IconImage = Icon.hasOwnProperty(props.icon) ? Icon[props.icon] : Icon.Box;
return (
{props.children}
);
};
export const Teaser: React.SFC = props => {
const IconImage = Icon.hasOwnProperty(props.icon) ? Icon[props.icon || 'Box'] : Icon.Box;
return (
{props.headline}
{props.description}
);
};