import * as React from 'react' import { Box, PolymorphicComponentProps } from 'react-polymorphic-box' import './GatsbyImageContainer.css' const defaultElement = 'div' export type GatsbyImageContainerProps< E extends React.ElementType > = PolymorphicComponentProps /** * `` used to wrap a `` component when the `` * component is styled to be 100% of its parent's height. This component * applies style overrides to the `GatsbyImage`-specific class names. * * @example * Basic usage: * * * */ export const GatsbyImageContainer: < E extends React.ElementType = typeof defaultElement >( props: GatsbyImageContainerProps, ) => React.ReactElement | null = React.forwardRef( ( { ref, ...props }: GatsbyImageContainerProps, innerRef: typeof ref, ) => ( ), ) // @ts-expect-error: Component type does not currently include displayName GatsbyImageContainer.displayName = 'GatsbyImageContainer'