mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
21 lines
453 B
TypeScript
21 lines
453 B
TypeScript
import React, { FC } from 'react';
|
|
|
|
import { Tabs } from '~/components/dialogs/Tabs';
|
|
|
|
import styles from './styles.module.scss';
|
|
|
|
interface IProps {
|
|
is_own: boolean;
|
|
}
|
|
|
|
const ProfileTabs: FC<IProps> = ({ is_own }) => {
|
|
const items = ['Профиль', 'Сообщения', ...(is_own ? ['Настройки'] : [])];
|
|
|
|
return (
|
|
<div className={styles.wrap}>
|
|
<Tabs.Horizontal items={items} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export { ProfileTabs };
|