Doc/Comments to BackButton comp
This commit is contained in:
parent
ff4ea47846
commit
c0e03d7d0d
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
//info: Back button component to navigate back to the previous page
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
/**
|
||||
* Renders a back button component.
|
||||
*
|
||||
* @returns The JSX element representing the back button.
|
||||
*/
|
||||
function BackButton(): JSX.Element {
|
||||
const navigate = useNavigate();
|
||||
const goBack = (): void => {
|
||||
|
|
Loading…
Reference in a new issue