// @flow
import * as React from "react";
import cn from "classnames";
type Props = {|
+src: string,
+alt?: string,
+href?: string,
+rounded?: boolean,
+className?: string,
+to?: string,
+RootComponent?: React.ElementType,
|};
function GalleryCardImage({
src,
alt,
href,
rounded = true,
className,
to,
RootComponent,
}: Props): React.Node {
const componentClasses = cn("mb-3");
const imageClasses = cn(
{
rounded: rounded,
},
className
);
const componentOptionalProps = {};
if (href) {
componentOptionalProps.href = href;
}
const image =
;
return RootComponent ? (
{image}
) : (
{image}
);
}
GalleryCardImage.displayName = "GalleryCard.Image";
/** @component */
export default GalleryCardImage;