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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | 499x 499x 499x 499x 499x 499x | import { GradientLockIcon } from "@assets/icons/GradientLock";
import { Button } from "@common/Button";
import { Text } from "@common/Text";
import { Stack, Grid, styled } from "@mui/material";
import { palette } from "@palette";
export const MissingPermissionContent = ({
handleClose,
}: {
handleClose?: () => void;
}) => {
return (
<Grid container justifyContent="center">
<StyledHeader>
{handleClose ? (
<StyledCancelButton background="tertiary" onClick={handleClose}>
Close
</StyledCancelButton>
) : null}
</StyledHeader>
<ContentContainer>
<GradientLockIcon />
<StyledTitle>Access denied</StyledTitle>
<ContentText>
It looks like you do not have permission to access this feature.
</ContentText>
<ContentText>
Please reach out to your administrator for assistance. Thank you!
</ContentText>
</ContentContainer>
</Grid>
);
};
const StyledHeader = styled(Grid)({
width: "100%",
display: "flex",
});
const StyledCancelButton = styled(Button)({
marginLeft: "auto",
padding: 8,
color: palette.neutral[80],
});
const StyledTitle = styled(Text)({
fontSize: "24px",
fontWight: 500,
color: palette.neutral[80],
paddingTop: "24px",
paddingBottom: "8px",
});
const ContentContainer = styled(Stack)({
width: "100%",
alignItems: "center",
});
const ContentText = styled(Text)({
fontSize: "14px",
fontWeight: 300,
lineHeight: "120%",
color: palette.neutral[80],
textAlign: "center",
});
|