import { ComponentTypes, ThumbnailComponent } from "oceanic.js";

export function Thumbnail(props: { src: string }): ThumbnailComponent {
	return {
		type: ComponentTypes.THUMBNAIL,
		media: {
			url: props.src
		},
		...props
	};
}
