import { Box, Button, CloseIcon, Stack } from "@front10/base-elements"; import React, { forwardRef } from "react"; import { InstagramCardProps } from "./InstagramCard"; import InstagramCardPostTypeCarouselIcon from "./InstagramCardPostTypeCarouselIcon"; import InstagramCardPostTypeVideoIcon from "./InstagramCardPostTypeVideoIcon"; import { InstagramHeader } from "./InstagramHeader"; import { InstagramReactions } from "./InstagramReactions"; import { InstagramN } from "./InstagramN"; type OwnProps = { onClose?: () => void; showCloseButton: Boolean; }; const InstagramM = forwardRef( ( { showCloseButton: _showCloseButton = true, data: { text8: profileName, userVerified, text6: avatar, image, type = "video", imageAltText, text1: likesCount, text2: commentsCount, text3: caption, text7: createdAt, link, media, }, showText8: showProfileName = true, showText7: showCreatedAt = true, showText3: showCaption = true, showText2: showCommentsCount = true, showText1: showLikes = true, imageCover = "cover", ...props }, ref ) => { const vHeight = window.innerHeight; const refCard = React.useRef() as React.MutableRefObject; return ( {_showCloseButton && ( )} {media ? ( ) : ( {imageAltText} )} {type === "video" && } {type === "carousel" && } {showCaption && caption} ); } ); export { InstagramM };