import React from 'react' import type { ReactNode } from 'react' import type { ContainerProps } from '@toptal/picasso-container' import { Container } from '@toptal/picasso-container' import { useFieldsLayoutContext } from '@toptal/picasso-form-layout' import { createLabelWidthStyles, horizontalLayoutClasses, } from '../FormField/styles' export interface Props extends Omit { /** Content */ children: ReactNode } const FormActionsContainer = ({ children, style, ...rest }: Props) => { const { layout, labelWidth } = useFieldsLayoutContext() if (layout === 'vertical') { return {children} } const labelWidthStyles = createLabelWidthStyles(labelWidth) return (
{children}
) } export default FormActionsContainer