1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/keyring-snaps/snap-account-detail-page/detail.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

23 lines
506 B
TypeScript

import React from 'react';
import { Box, Text } from '../../../components/component-library';
import {
FlexDirection,
TextVariant,
} from '../../../helpers/constants/design-system';
const Detail = ({
title,
children,
}: React.PropsWithChildren<{ title: string }>) => {
return (
<Box flexDirection={FlexDirection.Column} marginBottom={4}>
<Text variant={TextVariant.bodySmBold} marginBottom={1}>
{title}
</Text>
{children}
</Box>
);
};
export default Detail;