import { parseUrl } from 'query-string' export default function parseParams(url = window.location.href): any { return parseUrl(url).query }