1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx
2023-07-14 10:59:30 -07:00

24 lines
578 B
TypeScript

import React from 'react';
import { Box } from '../../../components/component-library';
import { Text } from '../../../components/component-library/text/deprecated';
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;