-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathAccountSection.tsx
More file actions
35 lines (32 loc) · 1007 Bytes
/
AccountSection.tsx
File metadata and controls
35 lines (32 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import type { ReactElement } from 'react';
import { ProfileSection } from '../ProfileSection';
import { CreditCardIcon, InviteIcon, SettingsIcon } from '../../icons';
import { webappUrl } from '../../../lib/constants';
import { useLazyModal } from '../../../hooks/useLazyModal';
import { LazyModal } from '../../modals/common/types';
export const AccountSection = (): ReactElement => {
const { openModal } = useLazyModal();
return (
<ProfileSection
items={[
{
title: 'Settings',
// href: `${webappUrl}account/profile`,
onClick: () => openModal({ type: LazyModal.UserSettings }),
icon: <SettingsIcon />,
},
{
title: 'Subscriptions',
href: `${webappUrl}account/subscription`,
icon: <CreditCardIcon />,
},
{
title: 'Invite friends',
href: `${webappUrl}account/invite`,
icon: <InviteIcon />,
},
]}
/>
);
};