1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00
metamask-extension/ui/pages/keyring-snaps/add-snap-account-modal/add-snap-account-modal.tsx
George Marshall 733391a964
Update Text import paths: /pages (#20117)
* Updating remaining Text import paths

* Updating snapshots
2023-07-20 12:49:35 -07:00

71 lines
1.6 KiB
TypeScript

import React from 'react';
import {
BUTTON_VARIANT,
Box,
Button,
Modal,
ModalContent,
ModalHeader,
ModalOverlay,
Text,
} from '../../../components/component-library';
import {
AlignItems,
Display,
FlexDirection,
JustifyContent,
TextAlign,
TextVariant,
} from '../../../helpers/constants/design-system';
import { useI18nContext } from '../../../hooks/useI18nContext';
export default function AddSnapAccountModal({
onClose,
isOpen,
}: {
isOpen: boolean;
onClose: () => void;
}) {
const t = useI18nContext();
return (
<Modal isOpen={isOpen} onClose={onClose}>
<ModalOverlay />
<ModalContent>
<ModalHeader onClose={onClose} margin={[4, 4, 4, 4]}>
{t('settingAddSnapAccount')}
</ModalHeader>
<Box
display={Display.Flex}
padding={[4, 4, 4, 4]}
flexDirection={FlexDirection.Column}
justifyContent={JustifyContent.center}
alignItems={AlignItems.center}
>
<Box marginBottom={4}>
<img src="/images/add-snaps-image.svg" />
</Box>
<Text
variant={TextVariant.bodyLgMedium}
textAlign={TextAlign.Center}
marginBottom={4}
>
{t('addSnapAccountModalDescription')}
</Text>
<Button
variant={BUTTON_VARIANT.PRIMARY}
block
className="get-started_button"
data-testid="get-started-button"
onClick={() => {
onClose();
}}
>
{t('getStarted')}
</Button>
</Box>
</ModalContent>
</Modal>
);
}