mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
28 lines
673 B
TypeScript
28 lines
673 B
TypeScript
import React, { FC } from 'react';
|
||
import styles from './styles.module.scss';
|
||
import { Icon } from '~/components/input/Icon';
|
||
import { Link } from 'react-router-dom';
|
||
|
||
interface IProps {
|
||
path: string;
|
||
}
|
||
|
||
const ProfileSidebarMenu: FC<IProps> = ({ path }) => {
|
||
const cleaned = path.replace(/\/$/, '');
|
||
|
||
return (
|
||
<div className={styles.wrap}>
|
||
<Link className={styles.row} to={`${cleaned}/settings`}>
|
||
<Icon icon="settings" />
|
||
<span>Настройки</span>
|
||
</Link>
|
||
|
||
<div className={styles.row}>
|
||
<Icon icon="messages" />
|
||
<span>Сообщения</span>
|
||
</div>
|
||
</div>
|
||
);
|
||
};
|
||
|
||
export { ProfileSidebarMenu };
|