-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-page-binder-tsx-3538d22389aa649e45ee.js
1 lines (1 loc) · 1.6 KB
/
component---src-templates-page-binder-tsx-3538d22389aa649e45ee.js
1
(self.webpackChunkvsp_official_site=self.webpackChunkvsp_official_site||[]).push([[28],{6016:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return o}});var n=a(7294),r=a(6630),c=a(5444),l=a(5937);function s(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},c=Object.keys(e);for(n=0;n<c.length;n++)a=c[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)a=c[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var i=function(e){var t=e.page,a=e.className,r=void 0===a?"":a;s(e,["page","className"]);return n.createElement(c.Link,{to:"".concat(t.slug),className:"PageCard ".concat(r)},t.featuredImages[0]&&n.createElement("div",{className:"PageCard--Image relative"},n.createElement(l.Z,{background:!0,cmsImage:t.featuredImages[0]})),n.createElement("div",{className:"PageCard--Content"},t.title&&n.createElement("h3",{className:"PageCard--Title"},t.title)))},m=a(4871),o=function(e){var t=e.data.cms.pageBinder;return n.createElement(r.Z,{title:t.title,subtitle:t.subtitle,featuredImages:t.featuredImages,breads:new Array({title:t.title,link:null})},n.createElement("main",{className:"Blog"},n.createElement("div",{className:"container"},t.contents.trim()?n.createElement("section",{className:"section"},n.createElement(m.Z,{source:t.contentsTransformed})):"",!!t.pages.length&&n.createElement("section",{className:"section"},n.createElement("div",{className:"PageBinder--Grid"},t.pages.map((function(e){return n.createElement(i,{key:e.id,page:e})})))))))}}}]);