import React from 'react'; import {Location} from 'history'; import Button from 'app/components/button'; import ButtonBar from 'app/components/buttonBar'; import {IconNext, IconPrevious} from 'app/icons'; import {t} from 'app/locale'; type Props = { location: Location; /** * A set of pathName's that will be used in the buttons in the following order: * [OldestURL, OlderURL, NewerURL, NewestURL] */ urls: [string, string, string, string]; hasNext?: boolean; hasPrevious?: boolean; className?: string; }; const NavigationButtonGroup = ({ location, urls, hasNext = false, hasPrevious = false, className, }: Props) => (