Clear git cache

This commit is contained in:
Hazem Krimi
2023-05-28 16:43:53 +01:00
parent bd462d7fb7
commit 2a71d7927c
179 changed files with 0 additions and 29069 deletions
-52
View File
@@ -1,52 +0,0 @@
import { Link as RouterLink } from 'react-router-dom';
import { Wrapper } from './styles';
type LinkProps = {
href?: string;
url?: boolean;
children?: React.ReactNode | JSX.Element | string;
color?:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white'
| string;
selected?: boolean;
className?: string;
iconLeft?: React.FunctionComponentElement<React.SVGProps<SVGSVGElement>>;
onClick?: () => void;
target?: '_self' | '_blank';
};
const Link = ({
href,
url = false,
children,
iconLeft,
selected = false,
target = '_self',
...props
}: LinkProps) => {
return (
<Wrapper {...props} selected={selected}>
{href && !url ? (
<RouterLink to={href} target={target}>
{iconLeft && <span className='icon left'>{iconLeft}</span>}
{children}
</RouterLink>
) : (
<a href={href} target={target}>
{iconLeft && <span className='icon left'>{iconLeft}</span>}
{children}
</a>
)}
</Wrapper>
);
};
export default Link;