import * as React from 'react'; import './index.scss' interface Props { title:string, handleClick:Function } const Footer = function(props:Props) { const { title, handleClick } = props; return { handleClick() || 'javaScript:;' } } > { title || '' } } export default Footer