Hi! We want to add memberships to our dashboard and hide specific sidebar menu options. What is best practice to handle these kind of things? Make a membership provider around the app? Or could I just call the api in the sidebar component
export function Sidebar({ className }: { className?: string }) { const pathname = usePathname(); const { data } = api.user.subscriptionStatus.useQuery();
export function Sidebar({ className }: { className?: string }) { const pathname = usePathname(); const { data } = api.user.subscriptionStatus.useQuery();