import pageTemplates from "components/agility-pageTemplates" import Head from 'next/head' import { Text } from '@components/ui' const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, error?: any, revalidate?: any }) => { if (!agilityProps) { console.error(`Page object or template was not found.`) return null } let pageTitle = "Commerce Storefront" if (agilityProps.globalData?.sitedata) { pageTitle = agilityProps.globalData?.sitedata.name } if (agilityProps.notFound === true) { return ( <>