bigbuffet-rw/app/soapbox/features/developers/index.tsx
2022-07-11 11:44:03 -05:00

15 lines
466 B
TypeScript

import React from 'react';
import { getSettings } from 'soapbox/actions/settings';
import { useAppSelector } from 'soapbox/hooks';
import DevelopersChallenge from './developers-challenge';
import DevelopersMenu from './developers-menu';
const Developers: React.FC = () => {
const isDeveloper = useAppSelector((state) => getSettings(state).get('isDeveloper'));
return isDeveloper ? <DevelopersMenu /> : <DevelopersChallenge />;
};
export default Developers;