mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
children: any;
|
|
onClick(e: React.FormEvent): void;
|
|
className?: string;
|
|
outline?: boolean;
|
|
}
|
|
|
|
const Button = ({ children, onClick, className = '', outline = false}: Props) => (
|
|
<button
|
|
onClick={onClick}
|
|
className={`${className} btn btn-${outline ? 'outline-' : ''}dark`}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export default Button; |