Gseller Sidebar is a package designed within the monorepo framework, offering a set of mini-components for integration into the Gseller core.
yarn add gseller-sidebar
or
npm install gseller-sidebar
- Make sure to include the SidebarProvider in your layout.tsx.
- The component requires three props: "onLogout," "sidebarOptions," and "src." These props, in order, serve the following purposes:
onLogout: a function to handle user logout from the system.
sidebarOptions: a list of options for your sidebar.
src: an image to be displayed at the top level of your sidebar.