import React, { memo } from 'react';
import useMappedRoute from '@Hooks/useMappedRoute';

function Routes(): React.ReactElement {
  /* Global & Local State */
  const routeDom = useMappedRoute([], 'home', 'login');
  /* Main */
  return <>{routeDom}</>;
}

export default memo(Routes);
