2023-12-14 17:45:54 +08:00
|
|
|
import {useShopStore} from "./shop_store";
|
|
|
|
import {formatMoney} from "./utils";
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
export function SummaryTotalPrice() {
|
|
|
|
const currency = useShopStore((state) => state.currency);
|
2024-01-30 14:45:30 +08:00
|
|
|
const total_price = useShopStore((state) => state.total_order_price);
|
2023-12-14 17:45:54 +08:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{currency} {formatMoney(total_price)}
|
|
|
|
<button style={{'opacity': '0', 'cursor': 'initial'}}>
|
|
|
|
<img src="/images/shop/icon-remove.svg" alt="icon remove"/>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|