app/assets/javascripts/components/story/StoryStateButtons.jsx
import React from 'react';
const renderInputButton = event => (
<input
type="button"
key={event}
className={`transition ${event}`}
value={I18n.t(`story.events.${event}`)}
/>
);
const StateButtons = ({ events }) => (
<div className="state-actions">{events.map(renderInputButton)}</div>
);
export default StateButtons;