Some checks failed
Build and Push Images / build-and-push (push) Failing after 1m30s
- POP 전용 39개 파일 추가 (홈/입고/출고/생산) - 백엔드 INSERT에 id gen_random_uuid 추가 (5개 파일) - POP 전용 API 7개 추가 (창고/위치/입고/동기화) - PC 코드 구조/순서/로직 변경 없음 (AppLayout, UserDropdown 미수정)
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";
|