import React , { FC } from 'react' ; import { Redirect } from 'react-router-dom' ; import { SECTION_SLUG } from '../constants' ; export const RedirectToTransformManagement = ( ) => < Redirect to = { `/${ SECTION_SLUG . HOME }` } />; export const RedirectToCreateTransform = ( { savedObjectId } ) => ( < Redirect to = { `/${ SECTION_SLUG . CREATE_TRANSFORM }/${ savedObjectId }` } />);