1 import type { MouseEventHandler, PropsWithChildren, ReactElement } from 'react';
2 import { Children, useEffect } from 'react';
4 import type { SpotlightProps } from '@proton/components';
7 * Raw spotlight used as a mock for testing
9 export const SpotlightMock = ({ children, show, content, onClose, onDisplayed }: PropsWithChildren<SpotlightProps>) => {
10 const child = Children.only(children) as ReactElement;
12 const handleClose: MouseEventHandler = (event) => {
25 <div className="spotlight">
27 <button title={'Close'} className="spotlight-close" onClick={handleClose}>