"use client";
import { memo } from "react";
import Image from "next/image";
import { cls } from "@/lib/utils";
interface MediaContentProps {
imageSrc?: string;
videoSrc?: string;
imageAlt?: string;
videoAriaLabel?: string;
imageClassName?: string;
}
const MediaContent = ({
imageSrc,
videoSrc,
imageAlt = "",
videoAriaLabel = "Video content",
imageClassName = "",
}: MediaContentProps) => {
return (
<>
{videoSrc ? (
) : (
imageSrc && (
)
)}
>
);
};
MediaContent.displayName = "MediaContent";
export default memo(MediaContent);