mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import { FunctionComponent } from 'react';
|
|
|
|
interface FormButtonProps {
|
|
children: string;
|
|
type: 'button' | 'submit' | 'reset';
|
|
}
|
|
|
|
const Button: FunctionComponent<FormButtonProps> = ({ children, type }) => (
|
|
// eslint-disable-next-line react/button-has-type
|
|
<button type={type} className="btn btn-primary mt-4 w-full rounded-xl">
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export default Button;
|