EN

@core / kit-dropshipping

1.0.1 ▾
verifiedMIT
GitHub

Dropshipping kit for Next.js: supplier import, margin rules, product landings, order forwarding and exceptions

Code10 filesContext~914 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/app/(dropshipping)/_components/track-view.tsxread-only · a15c9c8
'use client';
// `view_item` en el navegador (solo se pinta dentro de <ConsentGate>).
import { useEffect } from 'react';
import type { Money } from '@/lib/money';
import { newEventId, track } from '@/lib/pixels/client';

export function TrackView({ item }: { item: { id: string; name: string; price: Money } }) {
  useEffect(() => {
    track({ type: 'view_item', eventId: newEventId(), value: item.price, items: [{ id: item.id, name: item.name, price: item.price, quantity: 1 }] });
  }, [item.id, item.name, item.price]);
  return null;
}

Report @core/kit-dropshipping

Sign in with GitHub to report a package.