Moved frontend out of webserver into it's own container
This commit is contained in:
21
frontend/src/components/Layout/Button.tsx
Normal file
21
frontend/src/components/Layout/Button.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
|
||||
interface ButtonProps {
|
||||
title?: string;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
const Button: React.FC<ButtonProps> = ({
|
||||
title = "Submit",
|
||||
onClick,
|
||||
}) => {
|
||||
return (
|
||||
<div>
|
||||
<button onClick={onClick}>
|
||||
{title}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Button;
|
||||
Reference in New Issue
Block a user