2022-03-21 11:09:01 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-11-25 09:04:11 -08:00
|
|
|
import HStack from '../hstack/hstack';
|
|
|
|
|
2023-01-10 15:03:15 -08:00
|
|
|
interface IFormActions {
|
|
|
|
children: React.ReactNode
|
|
|
|
}
|
|
|
|
|
2022-04-30 21:39:58 -07:00
|
|
|
/** Container element to house form actions. */
|
2023-01-10 15:03:15 -08:00
|
|
|
const FormActions: React.FC<IFormActions> = ({ children }) => (
|
2022-11-25 09:04:11 -08:00
|
|
|
<HStack space={2} justifyContent='end'>
|
2022-03-21 11:09:01 -07:00
|
|
|
{children}
|
2022-11-25 09:04:11 -08:00
|
|
|
</HStack>
|
2022-03-21 11:09:01 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
export default FormActions;
|