UNPKG

d2-ui

Version:
8 lines (6 loc) 215 B
import React from 'react'; import PropTypes from 'prop-types'; import addContext from './addContext'; export default function addD2Context(Component) { return addContext(Component, { d2: PropTypes.object }); }