import React from "react" import styled from "@emotion/styled" import { Flex, Box, Text } from "rebass" const StyledRoutesOverview = styled(Flex)` border: 1px solid #e3e8ee; border-radius: 5px; margin-left: auto; margin-right: auto; width: 100%; max-height: calc(90vh - 20px); overflow-y: scroll; align-self: flex-start; font-size: 1; top: 20px; bottom: 20px; ` const RoutesOverview = ({ content }) => { if (!content) return null return ( ENDPOINTS {content.map(route => ( {route.method} {route.path?.replace(/{(.*?)}/g, ":$1")} ))} ) } export default RoutesOverview