Walking On Stars
Date:
April 2, 2020
import React from 'react'
import useGlobalConfig from '../Contexts/useGlobalConfig'
import {
Redirect
} from 'react-router-dom'
const FirstPageRedirector = () => {
const { getStartPage } = useGlobalConfig()
const possibleStartPageRoutes = {
welcome: '/welcome',
'premium-kits': '/template-kits/premium-kits',
'free-kits': '/template-kits/free-kits',
'installed-kits': '/template-kits/installed-kits',
photos: '/photos'
}
const preferredStartPage = getStartPage()
if (possibleStartPageRoutes[preferredStartPage]) {
return