| 1 | "use client"; |
| 2 | |
| 3 | import type { ComponentProps } |
| 4 | |
| 5 | import { cn } |
| 6 | import { Organizations } |
| 7 | import { UserInvitations } |
| 8 | |
| 9 | export type OrganizationsSettingsProps |
| 10 | className?: string |
| 11 | }; |
| 12 | |
| 13 | /** |
| 14 | * Renders the organizations settings panel. |
| 15 | * |
| 16 | * Displays all organizations the user belongs to with an empty state and create button, followed by a card for invitations to the user. |
| 17 | */ |
| 18 | export function OrganizationsSettings({ |
| 19 | className, |
| 20 | ...props |
| 21 | }: OrganizationsSettingsProps |
| 22 | return ( |
| 23 | <div |
| 24 | className={cn(" |
| 25 | {...props} |
| 26 | > |
| 27 | <Organizations /> |
| 28 | <UserInvitations /> |
| 29 | </div> |
| 30 | ); |
| 31 | } |