Files
myeasycms-v2/apps/web/app/(dashboard)/home/components/personal-account-dropdown.tsx
giancarlo cb8b23e8c0 Remove billing and checkout redirect buttons and related services
Deleted the billing-redirect-button, checkout-redirect-button, and embedded-stripe-checkout components. Additionally, removed the shadcn directory, which encompassed billing-related icons. This change streamlines the subscription settings interface and organizes the system's payment management. This update is a stepping stone towards improving the billing system's overall architecture.
2024-03-25 11:39:41 +08:00

28 lines
822 B
TypeScript

'use client';
import { PersonalAccountDropdown } from '@kit/accounts/personal-account-dropdown';
import { useSignOut } from '@kit/supabase/hooks/use-sign-out';
import { useUserSession } from '@kit/supabase/hooks/use-user-session';
import pathsConfig from '~/config/paths.config';
export function ProfileDropdownContainer(props: { collapsed: boolean }) {
const userSession = useUserSession();
const signOut = useSignOut();
const session = userSession?.data ?? undefined;
return (
<div className={props.collapsed ? '' : 'w-full'}>
<PersonalAccountDropdown
paths={{
home: pathsConfig.app.home,
}}
className={'w-full'}
showProfileName={!props.collapsed}
session={session}
signOutRequested={() => signOut.mutateAsync()}
/>
</div>
);
}