1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00
metamask-extension/ui/pages/create-account/connect-hardware/select-hardware.stories.js
2021-09-29 13:42:38 -05: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
/>
);
};