mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +01:00
30 lines
643 B
JavaScript
30 lines
643 B
JavaScript
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}`)()
|
|
}
|
|
useLedgerLive
|
|
/>
|
|
);
|
|
};
|
|
export const BrowserNotSupported = () => {
|
|
return (
|
|
<SelectHardware
|
|
browserSupported={false}
|
|
connectToHardwareWallet={() => undefined}
|
|
useLedgerLive
|
|
/>
|
|
);
|
|
};
|