/** * WordPress dependencies */ import { Button } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { chevronUp, chevronDown, close } from '@wordpress/icons'; import * as React from 'react'; /** * Renders the navigation for a response. * * @param props - Props used while rendering the navigation for a response. * @param props.hasNext - Whether there is a next response. * @param props.hasPrevious - Whether there is a previous response. * @param props.onNext - Callback fired when the next response is clicked. * @param props.onPrevious - Callback fired when the previous response is clicked. * @param props.onClose - Callback fired when the navigation is closed. * * @return - Element containing the navigation for a response. */ export function ResponseNavigation( { hasNext, hasPrevious, onNext, onPrevious, onClose, }: { hasNext: boolean; hasPrevious: boolean; onNext: () => void; onPrevious: () => void; onClose: () => void; } ) { const sharedProps = { accessibleWhenDisabled: true, iconSize: 24, showTooltip: true, size: 'compact' as const, }; return (
); }