ghost-portal/packages/react-components/src/InputAddress/createHeader.tsx
2020-04-01 15:30:08 +02:00

19 lines
543 B
TypeScript

// Copyright 2017-2020 @polkadot/react-components authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { KeyringSectionOption } from '@polkadot/ui-keyring/options/types';
import React from 'react';
import Dropdown from '../Dropdown';
export default function createHeader (option: KeyringSectionOption): React.ReactNode {
return (
<Dropdown.Header
content={option.name}
key={option.key || option.name}
/>
);
}