2020-06-03 18:25:58 +02:00
|
|
|
import React from 'react';
|
2020-06-01 10:53:36 +02:00
|
|
|
|
|
|
|
import Tabs from '../Tabs';
|
|
|
|
import ContentTypes from './ContentTypes';
|
|
|
|
import PluginsPermissions from './Plugins';
|
|
|
|
import SettingsPermissions from './Settings';
|
|
|
|
import { roleTabsLabel } from '../../../utils';
|
2020-06-03 18:25:58 +02:00
|
|
|
import { useContentTypes } from '../../../hooks';
|
2020-06-01 10:53:36 +02:00
|
|
|
|
|
|
|
const Permissions = () => {
|
2020-06-03 18:25:58 +02:00
|
|
|
const { singleTypes, collectionTypes } = useContentTypes();
|
2020-06-01 10:53:36 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Tabs tabsLabel={roleTabsLabel}>
|
|
|
|
<ContentTypes contentTypes={collectionTypes} />
|
|
|
|
<ContentTypes contentTypes={singleTypes} />
|
|
|
|
<PluginsPermissions />
|
|
|
|
<SettingsPermissions />
|
|
|
|
</Tabs>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Permissions;
|