import React, { Component } from 'react'; import { Breadcrumb, Container, Dropdown, Header, Icon, Item, Label, Menu, Segment, Input } from 'semantic-ui-react' import { Link } from 'react-router-dom'; class Category extends Component { render() { const data = this.props.data; const user = this.props.user; const match = this.props.match; const category = data.categories.find(x => x.slug === match.params.category ); return (
Categories {category.name} {category.tools.map((x, n) => {x.name} {user.authorizedTools.includes(x.id) ? : } Wiki ID: {x.wikiId} )}
); } } export default Category;