| 1 | "use client"; |
| 2 | |
| 3 | import { useAuthPlugin } from |
| 4 | import { Key } |
| 5 | |
| 6 | import { Button } |
| 7 | import { |
| 8 | Empty, |
| 9 | EmptyContent, |
| 10 | EmptyDescription, |
| 11 | EmptyHeader, |
| 12 | EmptyMedia, |
| 13 | EmptyTitle, |
| 14 | } from "@/components/ui/empty"; |
| 15 | import { apiKeyPlugin } |
| 16 | |
| 17 | export type ApiKeysEmptyProps |
| 18 | onCreatePress: () |
| 19 | hideCreate?: boolean |
| 20 | }; |
| 21 | |
| 22 | export function ApiKeysEmpty({ |
| 23 | const { localization: |
| 24 | |
| 25 | return ( |
| 26 | <Empty> |
| 27 | <EmptyHeader> |
| 28 | <EmptyMedia variant=" |
| 29 | <Key /> |
| 30 | </EmptyMedia> |
| 31 | <EmptyTitle>{apiKeyLocalization. |
| 32 | <EmptyDescription> |
| 33 | {apiKeyLocalization.apiKeysDescription} |
| 34 | </EmptyDescription> |
| 35 | </EmptyHeader> |
| 36 | <EmptyContent> |
| 37 | {!hideCreate && ( |
| 38 | <Button size=" |
| 39 | {apiKeyLocalization.createApiKey} |
| 40 | </Button> |
| 41 | )} |
| 42 | </EmptyContent> |
| 43 | </Empty> |
| 44 | ); |
| 45 | } |