import React from 'react'; import helpIcon from 'assets/images/icon-help.svg'; type sizeType = 'small' | 'medium' | 'large'; interface HelpProps { link: string; size?: sizeType; helpText?: string; } const Help = ({ size, link, helpText }: HelpProps) => { let width = 30; let height = 12; switch (size) { case 'medium': width = width * 3; height = height * 3; break; case 'large': width = width * 4; height = height * 4; break; default: break; } return ( {helpText &&

{helpText}

}
); }; export default Help;