import { chakra, HTMLChakraProps, useSize } from '@chakra-ui/react'
import { useRef } from 'react'
export const InlineCode = (props: HTMLChakraProps<'code'>) => {
const codeRef = useRef(null)
const dimensions = useSize(codeRef)
/**
* Value (in pixels) comes from the minimum width of
* the `li` parent element in the changelog page
* before the layout shifts to mobile.
*/
const MIN_CONTENT_WIDTH = 363
const shouldWrap = dimensions?.width > MIN_CONTENT_WIDTH
return (
)
}