mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-13 04:22:40 +00:00
13 lines
371 B
JavaScript
13 lines
371 B
JavaScript
const Actions = require('homebrewery/brew.actions.js');
|
|
const Store = require('homebrewery/brew.store.js');
|
|
|
|
const Editor = require('./editor.jsx')
|
|
|
|
module.exports = Store.createSmartComponent(Editor, ()=>{
|
|
return {
|
|
value : Store.getBrewText(),
|
|
onChange : Actions.updateBrewText,
|
|
metadata : Store.getMetaData(),
|
|
onMetadataChange : Actions.updateMetaData,
|
|
};
|
|
}); |