import { setTempSize } from 'store' import { formatNumber } from 'utils' import { useAppDispatch, useAppSelector } from 'hooks' const SelectSize = props => { //? Props const { sizes } = props //? Assets const dispatch = useAppDispatch() //? Store const { tempSize } = useAppSelector(state => state.cart) //? Render(s) return (
尺寸: {tempSize?.size} {formatNumber(sizes.length)} 尺寸
{sizes.map(item => ( ))}
) } export default SelectSize