This also hides the api key from users without the ADMIN permission. It will not be returned from the api for them. Regenerate functionality is not in the commit.
18 lines
516 B
TypeScript
18 lines
516 B
TypeScript
import React from 'react';
|
|
import type { NextPage } from 'next';
|
|
import SettingsLayout from '../../components/Settings/SettingsLayout';
|
|
import SettingsPlex from '../../components/Settings/SettingsPlex';
|
|
import { Permission } from '../../hooks/useUser';
|
|
import useRouteGuard from '../../hooks/useRouteGuard';
|
|
|
|
const PlexSettingsPage: NextPage = () => {
|
|
useRouteGuard(Permission.MANAGE_SETTINGS);
|
|
return (
|
|
<SettingsLayout>
|
|
<SettingsPlex />
|
|
</SettingsLayout>
|
|
);
|
|
};
|
|
|
|
export default PlexSettingsPage;
|