diff --git a/frontend/src/Components/BackButton.tsx b/frontend/src/Components/BackButton.tsx new file mode 100644 index 0000000..7a1ac81 --- /dev/null +++ b/frontend/src/Components/BackButton.tsx @@ -0,0 +1,18 @@ +import { useNavigate } from "react-router-dom"; + +function BackButton(): JSX.Element { + const navigate = useNavigate(); + const goBack = (): void => { + navigate(-1); + }; + return ( + + ); +} + +export default BackButton;