// Generated with util/create-component.js import React from "react"; import NsImage from "../../shared/ns-image"; import Text from "../../UI/Text"; import ContentsEditorDivider from "../Divider"; import { ImageProps } from "./Image.types"; const Image: React.FC = ({ url, ImageWrapper, title, description, text, alt, link, routeToNewPage, style, isMobile = true, }) => { return (
{link ? ( ) : ( )}
); }; const ImageContent = ({ url, ImageWrapper, alt, title, description, text, isMobile, }: { url: string; ImageWrapper?: JSX.Element; alt: string; title: string; description: string; text: string; isMobile: boolean; }) => { const dimHeight = (text?.split("\n").length + 1) * ((isMobile ? 3 : 4) * 1.5); return (
{title && ( {title} )}
{text && ( <>

{text}

)}
{description && (
{description}
)}
); }; export default Image;