import React from 'react'
import styled from 'styled-components'
import {StyledOcticon, Heading, Box, Text} from '@primer/components'
import {Link} from '@githubprimer/octicons-react'
import slugify from 'slugify'
const Anchor = ({id}) => (
)
const StyledHeading = styled(Heading)`
&:hover .anchorWrapper,
&:focus .anchorWrapper {
display: inline-block;
}
`
const MarkdownHeading = ({children, className, ...rest}) => {
const id = slugify(children.toString())
return (
{children}
)
}
export default MarkdownHeading