export function createSyntheticEvent({ target, type, event, }: { target: HTMLElement; type: string; event: any; }) { const notImplemented = () => console.warn('Function is not implemented'); return { target, currentTarget: target, preventDefault: notImplemented, stopPropagation: notImplemented, bubbles: true, type, nativeEvent: event as unknown as Event, persist: notImplemented, }; }