Files
supabase/apps/studio/components/ui/Error.tsx
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00

33 lines
1.1 KiB
TypeScript

import Link from 'next/link'
import { useEffect } from 'react'
import { Button } from 'ui'
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">
<Link href="/support/new">Submit a support request</Link>
</Button>
</div>
<p className="text-sm text-foreground-light">
Error: [{error?.code}] {error?.message}
</p>
</div>
)
}