1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import { DropdownArrowContext } from './dropdownConstants';
|
4 | import { InternalDropdownItem } from './InternalDropdownItem';
|
5 | import { Divider, DividerVariant } from '../Divider';
|
6 | import { useOUIAProps } from '../../helpers';
|
7 | export const DropdownSeparator = (_a) => {
|
8 | var { className = '',
|
9 |
|
10 | ref,
|
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 | };
|
15 | DropdownSeparator.displayName = 'DropdownSeparator';
|
16 |
|
\ | No newline at end of file |