@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
20 lines (17 loc) • 493 B
JavaScript
import usage from './alert.usage.js';
export default function({ textView }) {
textView.define('alert', {
type: 'block',
usage,
border: {
top: ['╔', '═', '╗'],
left: '║ ',
right: ' ║',
bottom: ['╚', '═', '╝']
},
render(node, props, data, context) {
const { content = 'text' } = props;
return textView.render(node, content, data, context);
}
});
};