Components
Account menu
Show a menu button for the authenticated users
page.tsx
You can use the Billing
redirect to show the billing page when the user clicks on the billing option.
You only need to add the useBilling
prop and it must be exist an CustomerID of the user of the payment service in the database.
Properties
name
string
requiredThe name of the user to display in the menu
email
string
requiredThe email of the user to display in the menu
image
string
requiredThe URL of the user’s avatar image
useBilling
boolean
default: "true"Whether to show the billing option in the menu
Usage
Example usage of the AccountMenu
component with the useSession
hook from next-auth/react
:
example.tsx
If you need basic components like buttons, inputs, and more, they are available with Shadcn UI.