import * as React from 'react'; type RootProps = React.ComponentPropsWithoutRef<'code'> & React.ComponentPropsWithoutRef<'span'>; export type CodeInlineProps = Readonly; /** * If you are sending emails for users that have the Orange.fr email client, * beware that this component will only work when you have a head containing meta tags. */ export const CodeInline = React.forwardRef( ({ children, ...props }, ref) => { return ( <> {/* This style tag is targeted at fixing an issue for the Orange.fr email client See: - https://www.caniemail.com/features/html-code/ - https://www.howtotarget.email/#2019-03-26-freenet-2 On that email client, the head and html elements are removed, making the meta tag a sibling of them allowing us to use a selector on them. Also {/* Does not render on Orange.fr */} {children} {/* Renders only on Orange.fr */} {children} ); }, ); CodeInline.displayName = 'CodeInline';