1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00
vault-frontend/src/containers/profile/ProfileTabs/index.tsx
2022-02-15 16:11:29 +07:00

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 };