vytal-redux/src/Popup/Pages/SettingsPage/InfoItem.tsx
2022-11-09 10:23:51 -05:00

17 lines
343 B
TypeScript

import { Box, Flex } from 'theme-ui'
interface InfoItemProps {
title: string
children: React.ReactNode
}
const SettingsPage = ({ title, children }: InfoItemProps) => {
return (
<Box sx={{ mb: '12px' }}>
<Flex sx={{ fontWeight: '700', mb: '2px' }}>{title}</Flex>
{children}
</Box>
)
}
export default SettingsPage