You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
350 B
TypeScript
15 lines
350 B
TypeScript
import React from 'react';
|
|
import { Item, ItemProps } from 'react-contexify';
|
|
|
|
export function ItemWithDataTestId({
|
|
children,
|
|
dataTestId,
|
|
...props
|
|
}: Omit<ItemProps, 'data-testid'> & { dataTestId?: React.SessionDataTestId }) {
|
|
return (
|
|
<Item data-testid={dataTestId || 'context-menu-item'} {...props}>
|
|
{children}
|
|
</Item>
|
|
);
|
|
}
|