1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00
vault-frontend/src/layouts/RoomLayout/index.tsx
2023-11-22 19:59:17 +06:00

77 lines
2.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { FC } from 'react';
import { Anchor } from '~/components/common/Anchor';
import { Container } from '~/components/common/Container';
import { Button } from '~/components/input/Button';
import { Role } from '~/constants/auth';
import { Dialog } from '~/constants/modal';
import { NODE_TYPES } from '~/constants/node';
import { useAuth } from '~/hooks/auth/useAuth';
import { useShowModal } from '~/hooks/modal/useShowModal';
import markdown from '~/styles/common/markdown.module.scss';
import styles from './styles.module.scss';
interface RoomLayoutProps {}
const RoomLayout: FC<RoomLayoutProps> = () => {
const createNode = useShowModal(Dialog.CreateNode);
const { user } = useAuth();
return (
<div className={styles.container}>
<div className={styles.room}>
<Container>
<div className={styles.info}>
<div className={markdown.wrapper}>
<h1>Рум</h1>
<p>
Пока ещё концепт, над которым я размышляю, ты видишь его, потому
что включил суперсилы в <Anchor href="/boris">Борисе</Anchor>.
</p>
<p>
Все идеи насчёт этого раздела можно посмотреть{' '}
<a
href="https://github.com/muerwre/vault-frontend/issues/158"
target="_blank"
rel="noreferrer"
>
на гитхабе
</a>
.
</p>
<p>
Здесь, скорее всего, будет возможность добавить несколько песен
и картинок для слайдшоу.
</p>
<p>
Если помните einsam.ru или раздел Nowhere на старой версии
сайта, то будет что-то такое.
</p>
{user.role === Role.Admin && (
<p>
<br />
<Button
onClick={() =>
createNode({ isInLab: false, type: NODE_TYPES.ROOM })
}
>
Добавить комнату
</Button>
</p>
)}
</div>
</div>
</Container>
</div>
<div className={styles.items}></div>
</div>
);
};
export { RoomLayout };