---
import type { RichText } from '../../../lib/interfaces.ts'

export interface Props {
  richText: RichText
}

const { richText } = Astro.props
---

{
  /* prettier-ignore */
  richText.Annotation.Code ? (
    <code><slot /></code>
  ) : (
    <slot />
  )
}

<style>
  code {
    color: #eb5757;
    padding: 0.25rem;
  }
</style>
