17 lines
343 B
TypeScript
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
|