// Generated with util/create-component.js import React from "react"; import Heading from "../Heading"; import Text from "../Text"; import { TableProps } from "./Table.types"; const Table: React.FC = (props) => { const { name, specCategories } = props.data; return (
{name && ( {name} )}
{specCategories.map((spec) => { if (spec.value === "-" || spec.value === "X") return; return (
{spec.name} {spec.value} {spec.unit}
); })}
); }; export default Table;