mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
Added network page to settings which shows information about the node network and sesh token
15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
import type { SessionDataTestId } from 'react';
|
|
import { Item, ItemProps } from 'react-contexify';
|
|
|
|
export function ItemWithDataTestId({
|
|
children,
|
|
dataTestId,
|
|
...props
|
|
}: Omit<ItemProps, 'data-testid'> & { dataTestId?: SessionDataTestId }) {
|
|
return (
|
|
<Item data-testid={dataTestId || 'context-menu-item'} {...props}>
|
|
{children}
|
|
</Item>
|
|
);
|
|
}
|