crabfit/crabfit-frontend/src/components/Button/Button.tsx
Ben Grant fdb7f0ef67 Tabs -> spaces
I have become my own worst enemy
2021-06-19 12:04:52 +10:00

16 lines
281 B
TypeScript

import { Pressable } from './buttonStyle';
const Button = ({ href, type = 'button', icon, children, ...props }) => (
<Pressable
type={type}
as={href ? 'a' : 'button'}
href={href}
{...props}
>
{icon}
{children}
</Pressable>
);
export default Button;