import { fNetwork } from '@fixtures' ; import { WalletId } from '@types' ; import { noOp } from '@utils' ; import { HardwareUIProps , HardwareWalletUI } from './Hardware' ; export default { title : 'Features/AddAccount/Hardware' , components : HardwareWalletUI } ; const initialProps = { network : fNetwork , isConnecting : false , handleNullConnect : noOp } ; const createInitialProps = ( walletId ) => ( { ... initialProps , walletId } ) ; export const LedgerUnlockUI = ( ) => { return ( < div className = "sb-container" style = { { maxWidth : '620px' } } > < HardwareWalletUI { ... createInitialProps ( WalletId . LEDGER_NANO_S_NEW ) } / > < /div>); } ; export const TrezorUnlockUI = ( ) => { return ( < div className = "sb-container" style = { { maxWidth : '620px' } } > < HardwareWalletUI { ... createInitialProps ( WalletId . TREZOR_NEW ) } / > < /div>); } ;