import defaultPhoto from '../../materials/default-photo.png' import { Link } from 'react-router-dom' import galery from '../../materials/gallery-icon.png' import backendURL from '../../helpers/backendUrl' import { videoRegex } from '../../helpers' const GalleryCard = ({ post = {} }) => (
) const ImageCard = ({ post = {} }) => (
) const VideoCard = ({ post = {} }) => (
) export const Card = ({ post }) => { return ( <> {post?.images && post?.images.length > 1 ? ( post?.images && post?.images[0] && post?.images[0]?.originalFileName?.match(videoRegex) ? ( <> ) : ( ) ) : post?.images && post?.images[0] && post?.images[0]?.originalFileName?.match(videoRegex) ? ( ) : post?.images && post?.images[0] && post?.images[0]?.url ? ( ) : (
)} ) }