This commit is contained in:
@@ -4,10 +4,10 @@ type Props = { id: string,
|
||||
height: number,
|
||||
style?: CSSProperties }
|
||||
|
||||
import type { CSSProperties } from 'react'
|
||||
import type { CSSProperties, FC } from 'react'
|
||||
|
||||
|
||||
export default (props: Props) => {
|
||||
export default ((props: Props) => {
|
||||
const { id, width, height, style = { } } = props
|
||||
|
||||
const iframeRef = useRef<HTMLIFrameElement> (null)
|
||||
@@ -108,4 +108,4 @@ export default (props: Props) => {
|
||||
style={margedStyle}
|
||||
allowFullScreen
|
||||
allow="autoplay"/>)
|
||||
}
|
||||
}) satisfies FC<Props>
|
||||
|
||||
Reference in New Issue
Block a user