/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import DebugLayout from '@theme/DebugLayout';
import DebugJsonView from '@theme/DebugJsonView';
function PluginInstanceContent({pluginId, pluginInstanceContent}) {
return (
{pluginId}
);
}
function PluginContent({pluginName, pluginContent}) {
return (
{pluginName}
{Object.entries(pluginContent)
// Filter plugin instances with no content
.filter(([, pluginInstanceContent]) => !!pluginInstanceContent)
.map(([pluginId, pluginInstanceContent]) => (
))}
);
}
export default function DebugContent({allContent}) {
return (