import styled from '@emotion/styled'; import type {ButtonProps} from 'sentry/components/button'; import {Button, LinkButton} from 'sentry/components/button'; import {space} from 'sentry/styles/space'; interface FooterWithButtonsProps { buttonText: string; disabled?: boolean; formFields?: Array<{name: string; value: any}>; formProps?: React.FormHTMLAttributes; href?: string; onClick?: ButtonProps['onClick']; } export default function FooterWithButtons({ buttonText, disabled, formFields, formProps, href, onClick, }: FooterWithButtonsProps) { const buttonProps = { priority: 'primary', size: 'xs', disabled, onClick, children: buttonText, } satisfies Partial; const button = href !== undefined ? ( ) : (