cleanup
This commit is contained in:
24
packages/reacord/library/react/embed-thumbnail.tsx
Normal file
24
packages/reacord/library/react/embed-thumbnail.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from "react"
|
||||
import { Node } from "../node"
|
||||
import { ReacordElement } from "./reacord-element.js"
|
||||
|
||||
/**
|
||||
* @category Embed
|
||||
*/
|
||||
export type EmbedThumbnailProps = {
|
||||
url: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Embed
|
||||
*/
|
||||
export function EmbedThumbnail(props: EmbedThumbnailProps) {
|
||||
return (
|
||||
<ReacordElement
|
||||
props={props}
|
||||
createNode={() => new EmbedThumbnailNode(props)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export class EmbedThumbnailNode extends Node<EmbedThumbnailProps> {}
|
||||
Reference in New Issue
Block a user