2021-09-29 20:42:38 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
import SelectHardware from './select-hardware';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Connect Hardware Wallet',
|
|
|
|
id: __filename,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SelectHardwareComponent = () => {
|
|
|
|
return (
|
|
|
|
<SelectHardware
|
|
|
|
browserSupported
|
|
|
|
connectToHardwareWallet={(selectedDevice) =>
|
|
|
|
action(`Continue connect to ${selectedDevice}`)()
|
|
|
|
}
|
2021-11-02 19:42:45 +01:00
|
|
|
useLedgerLive
|
2021-09-29 20:42:38 +02:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
export const BrowserNotSupported = () => {
|
|
|
|
return (
|
|
|
|
<SelectHardware
|
|
|
|
browserSupported={false}
|
|
|
|
connectToHardwareWallet={() => undefined}
|
2021-11-02 19:42:45 +01:00
|
|
|
useLedgerLive
|
2021-09-29 20:42:38 +02:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|