2022-04-14 09:10:46 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { getSettings } from 'soapbox/actions/settings';
|
|
|
|
import { useAppSelector } from 'soapbox/hooks';
|
|
|
|
|
2022-07-11 09:44:03 -07:00
|
|
|
import DevelopersChallenge from './developers-challenge';
|
|
|
|
import DevelopersMenu from './developers-menu';
|
2022-04-14 09:10:46 -07:00
|
|
|
|
|
|
|
const Developers: React.FC = () => {
|
|
|
|
const isDeveloper = useAppSelector((state) => getSettings(state).get('isDeveloper'));
|
|
|
|
|
|
|
|
return isDeveloper ? <DevelopersMenu /> : <DevelopersChallenge />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Developers;
|