mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
18 lines
No EOL
485 B
JavaScript
Executable file
18 lines
No EOL
485 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); |