"use client"; import { createClient } from "@/utils/supabase/client"; import React, { useState, useEffect } from 'react'; import Search from "@/components/neroshitron/search"; import Gallery from "@/components/neroshitron/gallery"; import Link from "next/link"; function PageComponent() { const [selectedGallery, setSelectedGallery] = useState(null); const supabase = createClient(); const getData = async () => { } useEffect(() => { getData(); }, [selectedGallery]); const closeGallery = () => { setSelectedGallery(null); } return (
Background
{setSelectedGallery(gallery)}}/>
{selectedGallery!=null ? ( <> {/* This is the modal for holding the gallery */} ) : null}
); } export default PageComponent;