27 lines
770 B
TypeScript
27 lines
770 B
TypeScript
|
|
/**
|
||
|
|
* useCartSync - 장바구니 DB 동기화 훅 (hardcoded 컴포넌트용 re-export)
|
||
|
|
*
|
||
|
|
* 실제 구현은 @/hooks/pop/useCartSync 에 있고,
|
||
|
|
* 여기서는 hardcoded 입고 컴포넌트들이 쉽게 import할 수 있도록 re-export한다.
|
||
|
|
*
|
||
|
|
* 사용법:
|
||
|
|
* ```typescript
|
||
|
|
* import { useCartSync } from "../common/useCartSync";
|
||
|
|
* const cart = useCartSync("pop-purchase-inbound", "purchase_detail");
|
||
|
|
* ```
|
||
|
|
*/
|
||
|
|
|
||
|
|
export { useCartSync } from "@/hooks/pop/useCartSync";
|
||
|
|
export type {
|
||
|
|
UseCartSyncReturn,
|
||
|
|
CartChanges,
|
||
|
|
} from "@/hooks/pop/useCartSync";
|
||
|
|
|
||
|
|
// 타입도 함께 re-export (hardcoded 컴포넌트에서 필요할 수 있음)
|
||
|
|
export type {
|
||
|
|
CartItem,
|
||
|
|
CartItemWithId,
|
||
|
|
CartSyncStatus,
|
||
|
|
CartItemStatus,
|
||
|
|
} from "@/lib/registry/pop-components/types";
|