import React from 'react' import { RouteComponentProps } from 'react-router-dom' import { useCookies } from 'react-cookie' import WeaponGrid from '~components/WeaponGrid' interface Props {} interface NewProps extends RouteComponentProps {} const New: React.FC = (props: NewProps) => { const [cookies, setCookie] = useCookies(['user']) function callback(path: string) { // This is scuffed, how do we do this natively? window.history.replaceState(null, `Grid Tool`, `${path}`) } return ( ) } export default New