import React, { Component } from 'react'; import { Breadcrumb, Button, Container, Dropdown, Header, Icon, Image, Item, Label, Menu, Segment, Table, Input } from 'semantic-ui-react' import { Link } from 'react-router-dom'; class Tool extends Component { render() { const data = this.props.data; const user = data.user; const match = this.props.match; const category = data.categories.find((x) => x.slug == match.params.category ); const tool = category.tools.find((x) => x.id == match.params.id ); const approved = user.authorizedTools.includes(tool.id); return (
Categories {category.name} {tool.name}

Status: Off

{approved || }
Cat Meow Dog Bark Bird Chrip
Notes

{tool.notes}

); } } export default Tool;