// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { jpDialog } from '@jupyter/web-components';
import type React from 'react';
import { wrap } from '../wrap';

export const Dialog: React.DetailedHTMLFactory<
  React.HTMLAttributes<HTMLElement> & {
    hidden?: boolean;
    modal?: boolean;
    'trap-focus'?: boolean;
  },
  HTMLElement
> = wrap(jpDialog()) as any;
// @ts-expect-error unknown property
Dialog.displayName = 'Jupyter.Dialog';
