import React from 'react'; import { Normalize } from '../../utils/normalize'; import { Box } from '../Box'; import { ArrowButton } from '../ArrowButton'; type StepNavButtonProps = React.ComponentProps & { label?: string; leftPress?: () => void; rightPress?: () => void; disabled?: boolean; loading?: boolean; variant?: 'primary' | 'outlined' | 'secondary'; }; /** * @label Right Button Label * @rightPress Called when the right button touch is released, but not if cancelled (optional) * @leftPress Called when the left button touch is released, but not if cancelled (optional) * @disabled Disables the right button (optional) * @loading Shows a loading spinner on the right button (optional) */ export const StepNavButton = ({ label, leftPress, rightPress, disabled, loading, variant = 'primary', ...props }: StepNavButtonProps) => ( {leftPress && ( )} {rightPress && ( )} );