Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require('react');
const CompLibrary = require('docusaurus/lib/core/CompLibrary');
const Container = CompLibrary.Container;
const CWD = process.cwd();
const siteConfig = require(`${CWD}/siteConfig.js`);
const versions = require(`${CWD}/versions.json`);
function Versions(props) {
const latestVersion = versions[0];
const repoUrl = siteConfig.repoUrl;
return (
<div>
<div>
<header>
<h1>{siteConfig.title} Versions</h1>
<div id="codefund">''</div></header></div></div>