-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-templates-all-category-tsx-1daec08986c8f7093a7f.js.map
1 lines (1 loc) · 1.6 KB
/
component---src-templates-all-category-tsx-1daec08986c8f7093a7f.js.map
1
{"version":3,"sources":["webpack:///./src/templates/AllCategory.tsx"],"names":["props","categories","pathContext","title","config","siteTitle","to","map","category","index","key"],"mappings":"gMASe,mBAACA,GAAqB,IAC3BC,EAAeD,EAAME,YAArBD,WACR,GAAIA,EACF,OACE,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAQE,MAAK,gBAAkBC,IAAOC,YACtC,kBAAC,IAAD,KACE,kBAAC,OAAD,CAAMC,GAAG,KAAKF,IAAOC,WACrB,kBAAC,IAAD,oBAEF,kBAAC,IAAD,KACE,kBAAC,IAAD,KACGJ,EAAWM,KAAI,SAACC,EAAUC,GAAX,OACd,kBAAC,IAAD,CAAOC,IAAKD,GACV,kBAAC,OAAD,CAAMH,GAAE,eAAiB,IAAUE,IAAcA","file":"component---src-templates-all-category-tsx-1daec08986c8f7093a7f.js","sourcesContent":["import React from 'react';\nimport { Helmet } from 'react-helmet';\nimport { Link } from 'gatsby';\nimport { kebabCase } from 'lodash';\nimport { Layout, Wrapper, Header, SectionTitle, Content, Title } from '../components';\n\nimport config from '../../config/SiteConfig';\nimport PageProps from '../models/PageProps';\n\nexport default (props: PageProps) => {\n const { categories } = props.pathContext;\n if (categories) {\n return (\n <Layout>\n <Helmet title={`Categories | ${config.siteTitle}`} />\n <Header>\n <Link to=\"/\">{config.siteTitle}</Link>\n <SectionTitle>Categories</SectionTitle>\n </Header>\n <Wrapper>\n <Content>\n {categories.map((category, index: number) => (\n <Title key={index}>\n <Link to={`/categories/${kebabCase(category)}`}>{category}</Link>\n </Title>\n ))}\n </Content>\n </Wrapper>\n </Layout>\n );\n }\n};\n"],"sourceRoot":""}