Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function ComponentsListRenderer({ classes = {}, items }) {
items = items.filter(item => item.visibleName);
if (!items.length) {
return null;
}
const windowHash = window.location.pathname + getHash(window.location.hash);
return (
<ul>
{items.map(({ heading, visibleName, href, content, external }) => {
const isItemSelected = windowHash === href;
return (
<li>
{visibleName}
{oss.includes(visibleName) && Community}
{content}</li></ul>
export const ComponentsListRenderer = ({ classes, items }) => {
const visibleItems = items.filter((item) => item.visibleName);
const [isOpen, toggleOpen] = useState({});
if (!visibleItems.length) {
return null;
}
const windowHash = getHash(window.location.hash);
return (
<div>
{visibleItems.map(({ heading, href, visibleName, content, hasParent, external }) => {
const isChild = !content || !content.props.items.length;
const isItemSelected = `/#/${windowHash}` === href;
return (
<div>
</div></div>