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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | 9x 26x 26x 26x 26x 20x 26x 26x 26x 104x 9x 104x 9x 9x | import { Box, Stack } from "@mui/material";
import GiveText from "@shared/Text/GiveText";
import { styled, useAppTheme } from "@theme/v2/Provider";
import { StyledTitle } from "@shared/Banner/styles";
import { StyledIconButton } from "./Navigation";
import {
DeviceMobileIcon,
IdentificationCardIcon,
FileTextIcon,
BankIcon,
SignOutIcon,
} from "@phosphor-icons/react";
import useThemeSettings from "@components/EnterpriseSettings/Branding/hooks/useThemeSettings";
import { useCustomThemeV2 } from "@theme/hooks/useCustomThemeV2";
import { useDrawerAccountWithUI } from "./DrawerAccount";
type Props = {
openLogoutModal: () => void;
};
const IntroContent = ({ openLogoutModal }: Props) => {
const { textColor, bgColorDefault, isCustomColor } = useThemeSettings();
const theme = useAppTheme();
const { isMobileView, isTabletView } = useCustomThemeV2();
const { isManyAccounts, DrawerAccountComponent } = useDrawerAccountWithUI({
baseRender: () => {
return renderColoredTitle({
marginBottom: "0px",
});
},
});
const renderColoredTitle = ({
marginBottom = "24px",
}: {
marginBottom?: string;
} = {}) => (
<StyledTitle
theme={theme}
textColor={isCustomColor ? textColor : bgColorDefault}
variant="h3"
fontSize="24px"
mb={marginBottom}
whiteSpace="nowrap"
>
Start your verification process
</StyledTitle>
);
return (
<Stack
sx={{
px: isMobileView ? "20px" : "40px",
pt: isMobileView ? "16px" : "24px",
pb: isMobileView ? 0 : "24px",
}}
>
{!isMobileView && !isTabletView && (
<StyledBox>
<Box
width="236px"
sx={{
"& > div": {
borderRadius: "12px",
"> div": {
padding: "4px",
},
},
}}
>
<DrawerAccountComponent />
</Box>
<StyledLogoutButton
Icon={SignOutIcon}
iconText="Log Out"
size="small"
variant="ghost"
onClick={openLogoutModal}
textColor="primary"
/>
</StyledBox>
)}
{isMobileView && isManyAccounts && (
<GiveText marginBottom="16px">Introduction</GiveText>
)}
{(isManyAccounts ||
((isMobileView || isTabletView) && !isManyAccounts)) &&
renderColoredTitle()}
<GiveText variant="bodyS" sx={{ mb: "20px" }}>
To proceed with your onboarding, please prepare the following documents
and details.
</GiveText>
<GiveText variant="bodyS" sx={{ mb: "12px" }}>
These are required to verify your identity and assess your business for
compliance.{" "}
</GiveText>
{documentsList.map((item, index) => (
<StyledDocumentItem key={index}>
{item.icon}
<GiveText variant="bodyS">{item.description}</GiveText>
</StyledDocumentItem>
))}
</Stack>
);
};
export default IntroContent;
const StyledLogoutButton = styled(StyledIconButton)({
gap: "8px",
});
const StyledDocumentItem = styled(Stack)(({ theme }) => ({
backgroundColor: theme.palette.primitive?.transparent["darken-5"],
borderRadius: "12px",
padding: "16px 20px 16px 20px",
flexDirection: "row",
alignItems: "center",
gap: "20px",
marginTop: "12px",
}));
const StyledBox = styled(Stack)({
flexDirection: "row",
alignItems: "flex-start",
justifyContent: "space-between",
marginBottom: "20px",
});
const documentsList = [
{
icon: <IdentificationCardIcon size={24} />,
description: "A valid government-issued document",
},
{
icon: <DeviceMobileIcon size={24} />,
description: "A smartphone for identity and bank verification",
},
{
icon: <FileTextIcon size={24} />,
description:
"Business details (legal name, address, and ownership structure)",
},
{
icon: <BankIcon size={24} />,
description: "Bank account info and latest statements",
},
];
|