Skip to content

Commit

Permalink
Adding the icon and image with dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Oct 20, 2024
1 parent d974f8b commit de23373
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/videoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

import classNames from "classnames";
import dynamic from "next/dynamic";
import Image from "next/image";
import { useEffect, useState } from "react";
import { FaPlayCircle } from "react-icons/fa";

const FaPlayCircle = dynamic(
() => import("react-icons/fa").then((mod) => mod.FaPlayCircle),
{ ssr: false }
);

import {
MATCH_URL_VIMEO,
MATCH_URL_YOUTUBE,
getVimeoId,
getYouTubeId,
} from "../helpers/embeds";

const Image = dynamic(() => import("next/image"), { ssr: false });

const YouTubeEmbed = dynamic(
() => import("./embeds/youtubeEmbed").then((mod) => mod.YouTubeEmbed),
{
Expand Down

0 comments on commit de23373

Please sign in to comment.