import React from "react"; import styled from "styled-components"; import { App, IAppProps } from "./app"; import { ItemList, Item, SubHeadline } from "./elements"; const CategoryHeadline = styled(SubHeadline)` padding-top: 1rem; `; const CategoryContainer = styled.div` width: 100%; `; interface IAppCategoryProps { name: string; items: Array; } export const AppCategory = ({ name, items }: IAppCategoryProps) => ( {name && {name}} {items.map((app, idx) => ( ))} );