mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 05:26:38 -04:00
18 lines
566 B
React
18 lines
566 B
React
![]() |
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||
|
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||
|
|
||
|
const FormNestedFoot = ({ label, addItem }) => (
|
||
|
<Components.Button size="small" variant="success" iconButton onClick={addItem} className="form-nested-button">
|
||
|
<Components.IconAdd height={12} width={12} />
|
||
|
</Components.Button>
|
||
|
);
|
||
|
|
||
|
FormNestedFoot.propTypes = {
|
||
|
label: PropTypes.string,
|
||
|
addItem: PropTypes.func,
|
||
|
};
|
||
|
|
||
|
registerComponent('FormNestedFoot', FormNestedFoot);
|