AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

preview.tsx 699B

123456789101112131415161718192021222324252627
  1. import { Head } from '@inertiajs/react';
  2. import { StorefrontRenderer } from '@/storefront/renderer';
  3. import { fontStylesheetUrl } from '@/storefront/theme';
  4. import type { FontMap, StorePlan } from '@/storefront/types';
  5. export default function PreviewStore({
  6. storeName,
  7. plan,
  8. fonts,
  9. }: {
  10. storeName: string;
  11. language: string;
  12. plan: StorePlan;
  13. fonts: FontMap;
  14. }) {
  15. const fontUrl = fontStylesheetUrl(plan.theme, fonts);
  16. return (
  17. <>
  18. <Head title={`${storeName} (preview)`}>
  19. {fontUrl && <link rel="stylesheet" href={fontUrl} />}
  20. </Head>
  21. <StorefrontRenderer plan={plan} fonts={fonts} />
  22. </>
  23. );
  24. }