import { useEffect, useState } from 'react' import { createClient } from '@supabase/supabase-js' import { Badge, Button, Card, // Auth, Space, Tabs, IconCode, IconSearch, } from '@supabase/ui' import CodeBlock from '../CodeBlock/CodeBlock' // Import Swiper React components import { Swiper, SwiperSlide } from 'swiper/react' import Link from 'next/link' import { useRouter } from 'next/router' import { useTheme } from '../Providers' const supabase = createClient( 'https://rsnibhkhsbfnncjmwnkj.supabase.co', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxNTIxNDE1MywiZXhwIjoxOTMwNzkwMTUzfQ.OQEbAaTfgDdLCCht251P2JRD3QDnui6nsU8N-tZA_Mc' ) function AuthComponentExample() { const { isDarkMode } = useTheme() const { basePath } = useRouter() // // store API swiper instance // const [imageSwiper, setImageSwiper] = useState(undefined) // const [imageSwiperActiveIndex, setImageSwiperActiveIndex] = useState(0) // function handleNavChange(e: number) { // console.log(e) // setImageSwiperActiveIndex(e) // // @ts-ignore // imageSwiper.slideTo(e) // } // const AuthContainer = (props: any) => { // const { user } = Auth.useUser() // if (user) { // return ( // <> //
Signed in: {user.email}
// // > // ) // } // return props.children // } return (Sign in with
or continue with
Signed in: {user.email}