/** * 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 type { EditorConfig, ElementFormatType, LexicalEditor, LexicalNode, NodeKey, Spread, } from 'lexical'; import { BlockWithAlignableContents } from '@lexical/react/LexicalBlockWithAlignableContents'; import { DecoratorBlockNode, SerializedDecoratorBlockNode, } from '@lexical/react/LexicalDecoratorBlockNode'; import * as React from 'react'; type YouTubeComponentProps = Readonly<{ className: Readonly<{ base: string; focus: string; }>; format: ElementFormatType | null; nodeKey: NodeKey; videoID: string; }>; function YouTubeComponent({ className, format, nodeKey, videoID, }: YouTubeComponentProps) { return (