import styled from 'styled-components'; import docs, { type Doc } from 'utils/docs'; import colors from 'styles/colors'; import Heading from 'components/Form/Heading'; const JobDocsContainer = styled.div` p.doc-desc, p.doc-uses, ul { margin: 0.25rem auto 1.5rem auto; } ul { padding: 0 0.5rem 0 1rem; } ul li a { color: ${colors.primary}; } summary { color: ${colors.primary};} h4 { border-top: 1px solid ${colors.primary}; color: ${colors.primary}; opacity: 0.75; padding: 0.5rem 0; } `; const DocContent = (id: string) => { const doc = docs.filter((doc: Doc) => doc.id === id)[0] || null; return ( doc? ( {doc.title} About {doc.description} Use Cases {doc.use} Links {doc.resources.map((resource: string | { title: string, link: string } , index: number) => ( typeof resource === 'string' ? ( {resource} ) : ( {resource.title} ) ))} Example ) : ( No Docs provided for this widget yet )); }; export default DocContent;
{doc.description}
{doc.use}
No Docs provided for this widget yet