feat: Cria o componente Button

This commit is contained in:
Sabrina Miranda 2023-01-09 22:08:55 -03:00
parent 1d1cce8384
commit e55d522187

View File

@ -0,0 +1,19 @@
import React from "react";
interface Btn {
text: string;
type: "button" | "submit" | "reset";
className: string;
}
const Button = ( props: Btn ) => {
const { text, type, className } = props;
return (
<button type={type} className={className}>
{text}
</button>
);
};
export { Button };