UNPKG

1.09 kBJavaScriptView Raw
1import { __rest } from "tslib";
2import * as React from 'react';
3import { DropdownArrowContext } from './dropdownConstants';
4import { InternalDropdownItem } from './InternalDropdownItem';
5import { Divider, DividerVariant } from '../Divider';
6import { useOUIAProps } from '../../helpers';
7export const DropdownSeparator = (_a) => {
8 var { className = '',
9 // eslint-disable-next-line @typescript-eslint/no-unused-vars
10 ref, // Types of Ref are different for React.FunctionComponent vs React.Component
11 ouiaId, ouiaSafe } = _a, props = __rest(_a, ["className", "ref", "ouiaId", "ouiaSafe"]);
12 const ouiaProps = useOUIAProps(DropdownSeparator.displayName, ouiaId, ouiaSafe);
13 return (React.createElement(DropdownArrowContext.Consumer, null, context => (React.createElement(InternalDropdownItem, Object.assign({}, props, { context: context, component: React.createElement(Divider, { component: DividerVariant.div }), className: className, role: "separator" }, ouiaProps)))));
14};
15DropdownSeparator.displayName = 'DropdownSeparator';
16//# sourceMappingURL=DropdownSeparator.js.map
\No newline at end of file