/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { LexicalEditor, NodeKey } from 'lexical'; import { type JSX } from 'react'; import './ImageNode.css'; import type { ImageSizeMode } from '../../types'; export default function ImageComponentWrapper({ file, src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, markerState, frame, sizeMode, }: { file?: File; altText: string; caption: LexicalEditor; height: 'inherit' | number; maxWidth: number; nodeKey: NodeKey; resizable: boolean; showCaption: boolean; src?: string; width: 'inherit' | number; captionsEnabled: boolean; markerState?: string; frame?: string; sizeMode?: ImageSizeMode; }): JSX.Element;