diff --git a/frontend/src/Components/Button.tsx b/frontend/src/Components/Button.tsx index 38a1853..13ae807 100644 --- a/frontend/src/Components/Button.tsx +++ b/frontend/src/Components/Button.tsx @@ -1,3 +1,12 @@ +/** + * Button component to display a button with text and onClick function. + * + * @param {Object} props - The component props. + * @param {string} props.text - The text to display on the button. + * @param {Function} props.onClick - The function to run when the button is clicked. + * @param {"submit" | "button" | "reset"} props.type - The type of button. + * @returns {JSX.Element} The rendered Button component. + */ function Button({ text, onClick,