1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/pages/create-account/connect-hardware/select-hardware.stories.js
2021-11-02 11:42:45 -07:00

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
/>
);
};