mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-04 23:14:56 +01:00
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
|
import PropTypes from 'prop-types';
|
||
|
|
||
|
export const SectionShape = {
|
||
|
props: PropTypes.object,
|
||
|
element: PropTypes.string,
|
||
|
key: PropTypes.string,
|
||
|
};
|
||
|
|
||
|
export const ValidChildren = PropTypes.oneOfType([
|
||
|
PropTypes.string,
|
||
|
PropTypes.shape(SectionShape),
|
||
|
PropTypes.arrayOf(
|
||
|
PropTypes.oneOfType([PropTypes.shape(SectionShape), PropTypes.string]),
|
||
|
),
|
||
|
]);
|
||
|
|
||
|
SectionShape.children = ValidChildren;
|