37 lines
1.2 KiB
React
37 lines
1.2 KiB
React
import { useContext } from "react";
|
|
import { Link } from "react-router-dom";
|
|
import { SessionContext } from "../session.js";
|
|
|
|
export function Settings() {
|
|
const { session } = useContext(SessionContext);
|
|
return (
|
|
<main className="page">
|
|
<header className="page-head">
|
|
<div>
|
|
<h1>Verwaltung</h1>
|
|
<p className="muted">Datenräume, Quellen und Nutzer. Das ist nicht die tägliche Aktenarbeit.</p>
|
|
</div>
|
|
</header>
|
|
<div className="tiles">
|
|
<Link className="tile" to="/rooms">
|
|
<span className="tile__kind">Verwaltung</span>
|
|
<strong>Datenräume</strong>
|
|
<span>Räume anlegen und wechseln</span>
|
|
</Link>
|
|
<Link className="tile" to="/sources">
|
|
<span className="tile__kind">Verwaltung</span>
|
|
<strong>Quellen</strong>
|
|
<span>Paperless und E-Mail</span>
|
|
</Link>
|
|
{session?.account?.is_superadmin ? (
|
|
<Link className="tile" to="/users">
|
|
<span className="tile__kind">Verwaltung</span>
|
|
<strong>Nutzer</strong>
|
|
<span>Konten anlegen</span>
|
|
</Link>
|
|
) : null}
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|