Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | 1x 70x | import { Box } from "@mui/material";
import { ArrowLeftIcon } from "@phosphor-icons/react";
import GiveButton from "@shared/Button/GiveButton";
type Props = {
handleGoBack?: () => void;
hideBackBtn?: boolean;
disabled: boolean;
submitLabel?: string;
};
const SignupNavigation = ({
handleGoBack,
disabled,
hideBackBtn,
submitLabel,
}: Props) => {
return (
<Box
alignItems="center"
justifyContent="space-between"
width="100%"
display="flex"
mt="20px"
px="40px"
>
<GiveButton
data-testid="previous-page-button"
onClick={handleGoBack}
label="Back"
size="large"
variant="ghost"
startIcon={<ArrowLeftIcon />}
sx={{
visibility: hideBackBtn ? "hidden" : "visible",
}}
/>
{/* leave submittion to be handled with form instead of the button */}
<GiveButton
size="large"
type="submit"
disabled={disabled}
label={submitLabel || "Next"}
/>
</Box>
);
};
export default SignupNavigation;
|