import { c as createComponent, m as maybeRenderHead, d as addAttribute, a as renderTemplate, b as createAstro, r as renderComponent } from '../chunks/astro/server_D-JZF3a4.mjs'; import 'piccolore'; import { g as getCollection } from '../chunks/_astro_content_C5hvN5fw.mjs'; import 'clsx'; import { $ as $$BaseLayout } from '../chunks/BaseLayout_CQrO8n43.mjs'; export { renderers } from '../renderers.mjs'; const $$Astro = createAstro(); const $$ProductCard = createComponent(($$result, $$props, $$slots) => { const Astro2 = $$result.createAstro($$Astro, $$props, $$slots); Astro2.self = $$ProductCard; const { product } = Astro2.props; const { name, shortDescription, image } = product.data; return renderTemplate`${maybeRenderHead()}

${name}

${shortDescription && renderTemplate`

${shortDescription}

`}
ดูรายละเอียด
`; }, "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/components/ProductCard.astro", void 0); const $$Index = createComponent(async ($$result, $$props, $$slots) => { const products = await getCollection("products"); return renderTemplate`${renderComponent($$result, "BaseLayout", $$BaseLayout, { "title": "\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14", "description": "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E08\u0E32\u0E01 Deal Plus Tech" }, { "default": async ($$result2) => renderTemplate` ${maybeRenderHead()}

สินค้าทั้งหมด

${products.map((product) => renderTemplate`${renderComponent($$result2, "ProductCard", $$ProductCard, { "product": product })}`)}
` })}`; }, "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/products/index.astro", void 0); const $$file = "/Users/kunthawatgreethong/Gitea/dealplustech/dealplustech-astro/src/pages/products/index.astro"; const $$url = "/products"; const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({ __proto__: null, default: $$Index, file: $$file, url: $$url }, Symbol.toStringTag, { value: 'Module' })); const page = () => _page; export { page };