({ isLink, ...props }: JSX.IntrinsicElements['code'] & InlineCodeProps)
| 4 | isLink: boolean |
| 5 | } |
| 6 | function InlineCode({ isLink, ...props }: JSX.IntrinsicElements['code'] & InlineCodeProps) { |
| 7 | return ( |
| 8 | <code |
| 9 | css={[ |
| 10 | tw`inline text-code text-secondary dark:text-secondary-dark px-1 rounded-md no-underline`, |
| 11 | !isLink && tw`bg-gray-30 bg-opacity-10 py-px`, |
| 12 | isLink && tw`bg-highlight dark:bg-highlight-dark py-0`, |
| 13 | ]} |
| 14 | {...props} |
| 15 | /> |
| 16 | ) |
| 17 | } |
| 18 | |
| 19 | export default InlineCode |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…