Files
personal-website/components/Button/index.tsx
T
2023-07-01 00:38:49 +01:00

24 lines
368 B
TypeScript

import { Props } from './types';
import { StyledButton } from './styles';
const Button = ({
variant = 'text',
href,
target,
onClick,
children,
className,
}: Props) => (
<StyledButton
href={href}
target={target}
className={className}
onClick={onClick}
variant={variant}
>
{children}
</StyledButton>
);
export default Button;