import { useSelector } from 'react-redux';
import selectCollectionTypesRelatedPermissions from '../../selectors/selectCollectionTypesRelatedPermissions';

const useContentTypePermissions = slug => {
  const collectionTypesRelatedPermissions = useSelector(selectCollectionTypesRelatedPermissions);

  const currentCTRelatedPermissions = collectionTypesRelatedPermissions[slug];
  const readPermissions = currentCTRelatedPermissions['plugins::content-manager.explorer.read'];
  const createPermissions = currentCTRelatedPermissions['plugins::content-manager.explorer.create'];

  return { createPermissions, readPermissions };
};

export default useContentTypePermissions;

@@ -387,32 +387,36 @@
 eadPermissions =
+%0A   
  currentCTRelate
@@ -469,16 +469,22 @@
 r.read'%5D
+ %7C%7C %5B%5D
 ;%0A  cons
@@ -504,16 +504,20 @@
 ssions =
+%0A   
  current
@@ -580,16 +580,22 @@
 create'%5D
+ %7C%7C %5B%5D
 ;%0A%0A  ret

Fix locale picker