mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
4a0bb36ca8
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import Link from 'next/link'
|
|
import { useEffect } from 'react'
|
|
import { Button } from 'ui'
|
|
|
|
import { SupportLink } from '@/components/interfaces/Support/SupportLink'
|
|
|
|
export default function EmptyPageState({ error }: any) {
|
|
useEffect(() => {
|
|
console.error('Error', error)
|
|
}, [])
|
|
|
|
return (
|
|
<div className="mx-auto flex h-full w-full flex-col items-center justify-center space-y-6">
|
|
<div className="flex w-[320px] flex-col items-center justify-center space-y-3">
|
|
<h4 className="text-lg">Something went wrong 🤕</h4>
|
|
<p className="text-center text-sm text-foreground-light">
|
|
Sorry about that, please try again later or feel free to reach out to us if the problem
|
|
persists.
|
|
</p>
|
|
</div>
|
|
<div className="flex items-center space-x-4">
|
|
<Button asChild>
|
|
<Link href="/projects">Head back</Link>
|
|
</Button>
|
|
<Button asChild type="secondary">
|
|
<SupportLink>Submit a support request</SupportLink>
|
|
</Button>
|
|
</div>
|
|
<p className="text-sm text-foreground-light">
|
|
Error: [{error?.code}] {error?.message}
|
|
</p>
|
|
</div>
|
|
)
|
|
}
|