import { css } from '@emotion/react'; import { mergeClasses } from '@expo/styleguide'; import { forwardRef, PropsWithChildren } from 'react'; export type SnippetContentProps = PropsWithChildren<{ alwaysDark?: boolean; hideOverflow?: boolean; skipPadding?: boolean; className?: string; }>; export const SnippetContent = forwardRef( ( { children, className, alwaysDark = false, hideOverflow = false, skipPadding = false, }: SnippetContentProps, ref ) => (
{children}
) ); const contentStyle = css` code { padding-left: 0; padding-right: 0; } `; const contentHideOverflow = css` code { white-space: nowrap; } `;