import { MEDIA_TYPE } from "../constants";
const OverlayContent = ({ overlayContent }) => {
if (overlayContent?.type === MEDIA_TYPE.PHOTOS) {
return (
);
} else if (overlayContent?.type === MEDIA_TYPE.VIDEOS) {
return (
);
}
};
const Overlay = ({ overlayContent, closeOverlay }) => {
const isOverlayOpen = overlayContent?.type !== undefined;
return (
Click anywhere or press "Escape" to close | Click here {" "} to see the raw media
) : null}