All files / src/features/Permissions/ModalV2/components/AddPermissionModal AddPermissionModal.styles.tsx

100% Statements 12/12
100% Branches 0/0
100% Functions 7/7
100% Lines 9/9

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          65x                 36x             18x               4x 1164x 232x               4x 13x     65x                        
import { Button } from "@common/Button";
import { BaseModal } from "@common/Modal";
import { Skeleton } from "@mui/material";
import { styled, Stack } from "@mui/material";
 
const OpenCodeEditorButton = styled(Button)(() => ({
  fontSize: "14px",
  color: "#6D9CF8",
  textDecorationColor: "#6D9CF8",
  lineHeight: "16.8px",
  fontWeight: 350,
  padding: "2px",
}));
 
const ActionButton = styled(Button)(() => ({
  padding: "8px 24px",
  borderRadius: "32px",
  fontSize: "14px",
  fontWeight: 400,
}));
 
const ActionsContainer = styled(Stack)(() => ({
  flexDirection: "row",
  alignItems: "center",
  gap: "16px",
  justifyContent: "flex-end",
  padding: "12px 16px",
}));
 
const CustomModal = styled(BaseModal, {
  shouldForwardProp: (prop) => prop !== "height",
})<{ height: string }>(({ height }) => ({
  "& .MuiDialog-paper": {
    boxShadow: "0px 8px 25px 0px rgba(5, 4, 4, 0.15)",
    overflow: "hidden",
    height,
  },
}));
 
const ListSkeleton = () => (
  <Stack direction="column" alignItems="stretch" gap="8px" paddingInline="8px">
    <Skeleton width="40%" height={30} sx={{ borderRadius: "4px" }} />
    {Array.from({ length: 5 }).map((_, i) => (
      <Skeleton key={i} height={60} sx={{ borderRadius: "4px" }} />
    ))}
  </Stack>
);
 
export {
  OpenCodeEditorButton,
  ActionButton,
  ActionsContainer,
  CustomModal,
  ListSkeleton,
};