Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import { withScreenSize } from '@vx/responsive';
import { App } from '@data-ui/event-flow';
import sampleEvents from '@data-ui/event-flow/build/sampleEvents';
// forms require this import
import '@data-ui/forms/build/react-select.min.css';
import readme from '../../node_modules/@data-ui/event-flow/README.md';
const ResponsiveVis = withScreenSize(({ screenWidth, screenHeight, ...rest }) => (
));
export default {
usage: readme,
// one example per dataset
examples: Object.keys(sampleEvents).map(name => {
const dataset = sampleEvents[name];
return {
description: name,
example: () => ,
};
}),
};