import * as React from 'react';
interface LinkProps {
active: boolean;
children: any;
onClick: () => void;
}
const Link = ({ active, children, onClick }: LinkProps) => {
if (active) {
return {children};
}
return (
{
e.preventDefault();
onClick();
}}
>
{children}
);
};
export default Link;