import * as React from 'react' import { cn } from '@/lib/utils' /** * FormActions — фиксированная row кнопок [Cancel | Submit] в footer форм. * Reverse на mobile — primary action на bottom (proper UX). */ export type FormActionsProps = React.HTMLAttributes & { /** Horizontal alignment. Default 'end' (right-justified). */ align?: 'start' | 'end' | 'between' } const ALIGN_CLASS: Record, string> = { start: 'sm:justify-start', end: 'sm:justify-end', between: 'sm:justify-between', } export function FormActions({ className, children, align = 'end', ...props }: FormActionsProps) { return (
{children}
) }