import {LocationDescriptor} from 'history'; import Button, {ButtonProps} from 'sentry/components/button'; import ButtonBar from 'sentry/components/buttonBar'; import {IconNext, IconPrevious} from 'sentry/icons'; import {t} from 'sentry/locale'; type Props = { /** * A set of LocationDescriptors that will be used in the buttons in the following order: * [Oldest, Older, Newer, Newest] */ links: [LocationDescriptor, LocationDescriptor, LocationDescriptor, LocationDescriptor]; className?: string; hasNext?: boolean; hasPrevious?: boolean; onNewerClick?: () => void; onNewestClick?: () => void; onOlderClick?: () => void; onOldestClick?: () => void; size?: ButtonProps['size']; }; const NavigationButtonGroup = ({ links, hasNext = false, hasPrevious = false, className, size, onOldestClick, onOlderClick, onNewerClick, onNewestClick, }: Props) => { return (