import { useLocation, useResolvedPath } from 'react-router-dom';
function useDetail() {
  const location = useLocation();
  const path = useResolvedPath('.');

  return !(path.pathname === location.pathname);
}
export default useDetail