rename h2separator to h1 and expose component
This commit is contained in:
@ -18,7 +18,7 @@ const TerminalDiamond = ({ right }) => (
|
||||
</Box>
|
||||
)
|
||||
|
||||
const H2Separator = ({ title }) => {
|
||||
export const H1Separator = ({ title, component }) => {
|
||||
|
||||
return (
|
||||
<Box display="flex">
|
||||
@ -28,7 +28,7 @@ const H2Separator = ({ title }) => {
|
||||
<Box py={1.5} px={1} border={1} borderTop={0}>
|
||||
<Typography
|
||||
variant="h1"
|
||||
component="h2"
|
||||
component={component}
|
||||
sx={{ textTransform: "uppercase" }}
|
||||
>
|
||||
{title}
|
||||
@ -39,6 +39,4 @@ const H2Separator = ({ title }) => {
|
||||
</Box>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
|
||||
export default H2Separator
|
||||
}
|
||||
Reference in New Issue
Block a user