) : null}
{hotKeys.length ? (
{hotKeys.map((hk: HotKey) => {
const {
custom,
keySequence,
name,
orderSide,
orderPrice,
orderSize,
orderSizeType,
orderType,
ioc,
margin,
reduceOnly,
postOnly,
} = hk
const options = {
margin: margin,
IOC: ioc,
post: postOnly,
reduce: reduceOnly,
}
const size =
orderSizeType === 'percentage'
? t('settings:percentage-of-max', { size: orderSize })
: `$${orderSize}`
const price = orderPrice
? `${orderPrice}% ${
orderSide === 'buy'
? t('settings:below')
: t('settings:above')
} oracle`
: t('trade:market')
const selectedMarket =
mangoStore.getState().selectedMarket.current
return (
{name}
{keySequence}
{!custom ? (
{`${t(orderSide)} ${t(
`trade:${orderType}`,
)}, ${size} at ${price}`}
) : null}
{!custom ? (
{!options.margin &&
selectedMarket instanceof PerpMarket ? (
{t('trade:margin')}
) : null}
{Object.entries(options).map((e, i) => {
return e[1] ? (
{t(`trade:${e[0]}`)}
) : null
})}
) : null}
handleDeleteKey(keySequence)}
size="small"
>
)
})}