import PropTypes from 'prop-types'; import React from 'react'; import { Link } from 'react-router'; const TabKey = { assets: 'assets', collections: 'collections', sketches: 'sketches', }; const Tab = ({ children, isSelected, to }) => { const selectedClassName = 'dashboard-header__tab--selected'; const location = { pathname: to, state: { skipSavingPath: true } }; const content = isSelected ? {children} : {children}; return (