frontPanel/src/pages/IntegrationsPage/IntegrationsModal/IntegrationStep2/IntegrationStep2.tsx

39 lines
910 B
TypeScript
Raw Normal View History

import { Box, Typography, useMediaQuery, useTheme } from "@mui/material";
import { FC } from "react";
import { StepButtonsBlock } from "../StepButtonsBlock/StepButtonsBlock";
type IntegrationStep2Props = {
handlePrevStep: () => void;
handleNextStep: () => void;
};
export const IntegrationStep2: FC<IntegrationStep2Props> = ({
handlePrevStep,
handleNextStep,
}) => {
const theme = useTheme();
const upMd = useMediaQuery(theme.breakpoints.up("md"));
return (
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
height: "100%",
flexGrow: 1,
}}
>
<Typography
sx={{ color: "#4D4D4D", mt: "5px", mb: upMd ? "10px" : "33px" }}
>
step 2
</Typography>
<StepButtonsBlock
handleNextStep={handleNextStep}
handlePrevStep={handlePrevStep}
/>
</Box>
);
};