mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
18 lines
No EOL
486 B
JavaScript
Executable file
18 lines
No EOL
486 B
JavaScript
Executable file
import React from 'react';
|
|
import './Button.jsx';
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
export class Buttons extends React.Component {
|
|
render () {
|
|
let { buttons = {}, className = "buttons" } = this.props;
|
|
return (
|
|
<div className={ className }>
|
|
{Object.keys(buttons).map((id, i) =>
|
|
<Components.AccountsButton {...buttons[id]} key={i} />
|
|
)}
|
|
</div>
|
|
);
|
|
}
|
|
};
|
|
|
|
registerComponent('AccountsButtons', Buttons); |