mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem We now export components under a subpath in ui-patterns to avoid barrel files as they slow down every tools (from IDE to linters, etc.) and may also affect bundles our users have to download. ## Solution - Remove the UI patterns index file - Fix invalid impors
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
'use client'
|
|
|
|
import { Key } from 'lucide-react'
|
|
import { Button } from 'ui'
|
|
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
|
|
|
|
export default function CopyEmptyStates() {
|
|
return (
|
|
<div className="flex flex-col gap-8">
|
|
<div className="flex flex-col gap-4">
|
|
<span className="text-xs text-foreground-muted">Bad Example</span>
|
|
<div className="flex flex-col gap-4">
|
|
<EmptyStatePresentational
|
|
icon={Key}
|
|
title="There are no API keys available"
|
|
description=""
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div className="flex flex-col gap-4">
|
|
<span className="text-xs text-foreground-muted">Good Example</span>
|
|
<div className="flex flex-col gap-4">
|
|
<EmptyStatePresentational
|
|
icon={Key}
|
|
title="No API keys"
|
|
description="Generate a key to connect your application."
|
|
>
|
|
<Button variant="primary">Generate key</Button>
|
|
</EmptyStatePresentational>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|