vytal-redux/src/popup/components/Page.tsx
2023-01-16 01:43:48 -05:00

24 lines
440 B
TypeScript

import { Box } from 'theme-ui'
interface PageProps {
isCurrentTab: boolean
title: string
children: React.ReactNode
}
const Page = ({ isCurrentTab, title, children }: PageProps) => {
return (
<Box
sx={{
display: isCurrentTab ? 'block' : 'none',
}}
>
<Box sx={{ fontSize: '21px', mb: '12px', fontWeight: '600' }}>
{title}
</Box>
{children}
</Box>
)
}
export default Page