shopperman
Version:
shopping cart ui for shopify stores
31 lines (28 loc) • 495 B
text/typescript
import {CartText} from "./cart-interfaces"
export const makeDefaultCartText = (): CartText => ({
cartButtonText: {
open: {
title: "Close the cart",
},
closed: {
title: "Open the cart"
}
},
cartPanelText: {
heading: "Shopping cart",
cartItemText: {
remove: {
title: "Remove cart item",
}
},
cartCalculatedText: {
subtotal: {
content: "Subtotal (approximate)"
}
},
cartCheckoutText: {
title: "Buy cart items",
content: "Checkout"
}
}
})