mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 16:15:22 +00:00
12 lines
358 B
TypeScript
12 lines
358 B
TypeScript
import type { ContentKitImage } from '@gitbook/api';
|
|
|
|
import type { ContentKitServerElementProps } from './types';
|
|
|
|
export function ElementImage(props: ContentKitServerElementProps<ContentKitImage>) {
|
|
const { element } = props;
|
|
|
|
// TODO: do block display with aspect ratio
|
|
|
|
return <img src={element.source.url} className="contentkit-image" />;
|
|
}
|