import { Space } from 'antd' import React from 'react' import { FormPublicPageButtonFragment } from '../../../graphql/fragment/form.public.fragment' import { StyledButton } from '../../styled/button' interface Props { buttons: FormPublicPageButtonFragment[] } export const PageButtons: React.FC = ({ buttons }) => { if (buttons.length === 0) { return null } return ( {buttons.map((button, key) => { return ( {button.text} ) })} ) }