2024-03-29 16:14:35 -04:00
|
|
|
import clsx from 'clsx'
|
|
|
|
|
import { type HTMLProps } from 'react'
|
2024-03-29 15:41:10 -04:00
|
|
|
|
2024-03-29 16:14:35 -04:00
|
|
|
type Properties = HTMLProps<HTMLSpanElement>
|
|
|
|
|
|
|
|
|
|
export default function Code(properties: Properties) {
|
2024-03-29 15:41:10 -04:00
|
|
|
return (
|
2024-03-29 16:14:35 -04:00
|
|
|
<code className={clsx('bg-gray-100 dark:bg-zinc-700 p-0.5 rounded-md', properties.className)}>
|
|
|
|
|
{properties.children}
|
2024-03-29 15:41:10 -04:00
|
|
|
</code>
|
|
|
|
|
)
|
|
|
|
|
}
|