import { FAINT, FONT, GROUND, INK, LINE, PANEL } from './tokens.js'; /** * The shared email chrome: doctype, head, hidden preheader, centered wrapper, * header (logo — bounded via prepareData), the content slot, and the footer * (store name + address + Visit store / Help). Every email renders its content * block into this via a Handlebars partial block: * * {{#> emailLayout preheader=(t "…")}} …content… {{/emailLayout}} * * The content is emitted by `{{> @partial-block}}`. `@locale` is the render * locale from the data frame; `{{t}}` localizes the footer copy, so the chrome * translates with the rest. */ export const emailLayout = ` {{#if storeInfo.logo}}{{/if}}
{{preheader}}
{{#if storeInfo.logo}}{{storeInfo.logo.alt}}{{else}}
{{storeInfo.storeName}}
{{/if}}
{{> @partial-block}}

{{storeInfo.storeName}}{{#if storeInfo.address.street}} · {{storeInfo.address.street}}{{#if storeInfo.address.city}}, {{storeInfo.address.city}}{{/if}}{{#if storeInfo.address.province}}, {{storeInfo.address.province}}{{/if}}{{#if storeInfo.address.postalCode}} {{storeInfo.address.postalCode}}{{/if}}{{#if storeInfo.address.country}}, {{storeInfo.address.country}}{{/if}}{{/if}}

{{t "Visit store"}}{{#if storeInfo.storeEmail}} · {{t "Help"}}{{/if}}

`;