| 1 | "use client"; |
| 2 | |
| 3 | import { useAuthPlugin } from |
| 4 | import { Briefcase } |
| 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 { organizationPlugin } |
| 16 | |
| 17 | export type OrganizationsEmptyProps |
| 18 | onCreatePress: () |
| 19 | canCreate?: boolean |
| 20 | }; |
| 21 | |
| 22 | export function OrganizationsEmpty({ |
| 23 | onCreatePress, |
| 24 | canCreate = true, |
| 25 | }: OrganizationsEmptyProps) |
| 26 | const { localization: |
| 27 | useAuthPlugin(organizationPlugin); |
| 28 | |
| 29 | return ( |
| 30 | <Empty> |
| 31 | <EmptyHeader> |
| 32 | <EmptyMedia variant=" |
| 33 | <Briefcase /> |
| 34 | </EmptyMedia> |
| 35 | <EmptyTitle>{organizationLocalization. |
| 36 | <EmptyDescription> |
| 37 | {organizationLocalization.organizationsDescription} |
| 38 | </EmptyDescription> |
| 39 | </EmptyHeader> |
| 40 | <EmptyContent> |
| 41 | <Button size=" |
| 42 | {organizationLocalization.createOrganization} |
| 43 | </Button> |
| 44 | </EmptyContent> |
| 45 | </Empty> |
| 46 | ); |
| 47 | } |