mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
* migrations * clearer value prop * consistent verb * migration input * triggers * extract trigger buttons * database backups * schema title * unrelated nit * fix * shared component * ui-patterns * rename * improve docs * remove redundant overrides * remove old file * prettier fix * fix type error --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
30 lines
805 B
TypeScript
30 lines
805 B
TypeScript
import Link from 'next/link'
|
||
import { Button } from 'ui'
|
||
import { Admonition } from 'ui-patterns/admonition'
|
||
|
||
const bucketId = 'user_avatars'
|
||
|
||
export default function EmptyStateMissingRoute() {
|
||
return (
|
||
<div className="flex items-center justify-center w-full h-full">
|
||
<Admonition
|
||
type="default"
|
||
className="max-w-md"
|
||
title="Unable to find bucket"
|
||
description={`${bucketId ? `The bucket “${bucketId}”` : 'This bucket'} doesn’t seem to exist.`}
|
||
>
|
||
<Button asChild type="default" className="mt-2">
|
||
<Link
|
||
href="/"
|
||
onClick={(e) => {
|
||
e.preventDefault() // Just for demo purposes
|
||
}}
|
||
>
|
||
Head back
|
||
</Link>
|
||
</Button>
|
||
</Admonition>
|
||
</div>
|
||
)
|
||
}
|