{"version":3,"file":"component---src-components-info-page-tsx-3029c77d3187d583a343.js","mappings":"6LAkDA,UAxCiB,SAAC,GAAkC,IAAhCA,EAA+B,EAA/BA,KAAMC,EAAyB,EAAzBA,SACxB,EAA+CD,EAA/C,IAAQE,EAAR,cAAqBC,EAArB,OAA2BC,EAA3B,kBACQC,EAAwCH,EAAhD,MAAeI,EAAiCJ,EAAhD,qBAAqCK,EAAWL,EAAhD,OACIM,GAH6C,EAYjD,OANIJ,GAAmBK,OAAAA,KAAAA,GAAvB,SACED,EAAeJ,EAAA,YACb,+BAA+BM,EAAAA,UAKjC,qBACEC,SADF,EAEEC,gBAFF,EAGEC,mBAHF,EAIEN,OAJF,EAKEN,SAAUA,GAEV,qBAAiBD,KAAMG","sources":["webpack://@cmsgov/cms-design-system-docs/./src/components/InfoPage.tsx"],"sourcesContent":["import React from 'react';\nimport { graphql } from 'gatsby';\n\nimport Layout from './Layout';\nimport { MdxQuery, TableOfContentsItem } from '../helpers/graphQLTypes';\nimport ContentRenderer from './ContentRenderer';\n\n/**\n * Template for information content pages.\n */\nconst InfoPage = ({ data, location }: MdxQuery) => {\n const { frontmatter, body, tableOfContents } = data.mdx;\n const { title, relatedUswdsGuidance, status } = frontmatter;\n let showGuidance = false;\n\n // check table of contents to see if there is a guidance section\n if (tableOfContents && Object.keys(tableOfContents).length) {\n showGuidance = tableOfContents.items.some(\n (item: TableOfContentsItem) => item.title === 'Guidance'\n );\n }\n\n return (\n \n \n \n );\n};\n\nexport const query = graphql`\n query ($id: String!) {\n mdx(id: { eq: $id }) {\n id\n frontmatter {\n title\n status\n relatedUswdsGuidance\n }\n body\n tableOfContents\n }\n }\n`;\n\nexport default InfoPage;\n"],"names":["data","location","frontmatter","body","tableOfContents","title","relatedUswdsGuidance","status","showGuidance","Object","item","pageName","relatedGuidance","showJumpToGuidance"],"sourceRoot":""}