import { InfoCircle } from 'components/Icons' import Switch from 'components/Switch' import Text from 'components/Text' import { Tooltip } from 'components/Tooltip' import ConditionalWrapper from 'hocs/ConditionalWrapper' interface Props { checked: boolean onChange: (value: boolean) => void borrowAssetSymbol: string disabled?: boolean } export default function MarginToggle(props: Props) { return (
Margin ( {props.borrowAssetSymbol} is not a borrowable asset. Please choose another asset to sell in order to margin trade. } > {children} )} >
{props.disabled && ( )}
) }