Files
supabase/apps/design-system/registry/default/example/copy-empty-states.tsx
Gildas Garcia b30db91d71 chore: cleanup UI patterns exports (#47406)
## 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
2026-06-30 09:23:17 +02:00

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>
)
}