import React from 'react'; import styled from 'styled-components'; const Select = styled.select` height: 32px; width: 64px; `; const quantityOptions = (new Array(10).fill(0)).map((v, i) => i); interface QuantitySelectProps { id: string; onChange: Function; } const QuantitySelect = React.memo(({ id, onChange }: QuantitySelectProps) => { const onChangeQuantity = React.useCallback((e) => { onChange(id, e.target.value); }, []); return ( ); }); export default QuantitySelect;