function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import { Tab, TabList, TabPanel, TabPanels, useTabs } from '@looker/components';
import React from 'react';
import { DocCode } from '../DocCode';
export var DocDeclarations = _ref => {
  var {
    declarations
  } = _ref;
  var tabs = useTabs();
  return React.createElement(React.Fragment, null, React.createElement(TabList, tabs, Object.keys(declarations).map(language => React.createElement(Tab, {
    key: language
  }, language))), React.createElement(TabPanels, _extends({}, tabs, {
    pt: "0"
  }), Object.entries(declarations).map(_ref2 => {
    var [language, code] = _ref2;
    return React.createElement(TabPanel, {
      key: language
    }, React.createElement(DocCode, {
      language: language,
      code: code
    }));
  })));
};
//# sourceMappingURL=DocDeclarations.js.map