import Link from 'next/link'
import { OrganizationInvite } from 'components/interfaces/OrganizationInvite/OrganizationInvite'
import { BASE_PATH } from 'lib/constants'
import { useTheme } from 'next-themes'
import { useEffect, useMemo, useState } from 'react'
import type { NextPageWithLayout } from 'types'
import { cn } from 'ui'
const JoinOrganizationPage: NextPageWithLayout = () => {
const { resolvedTheme } = useTheme()
const isDarkMode = resolvedTheme?.includes('dark')
const [mounted, setMounted] = useState(false)
const imgUrl = useMemo(
() =>
isDarkMode ? `${BASE_PATH}/img/supabase-dark.svg` : `${BASE_PATH}/img/supabase-light.svg`,
[isDarkMode]
)
useEffect(() => setMounted(true), [])
return (
<>
{mounted && (
)}