mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 02:23:30 +00:00
70c6c9df42
* Start * Try webframe * Lint and format * Move to package * Continue * Implement card and cleanup contexts * Start code blocks * Start rendering image * Continue with card * Start stack * Start text * Start modal * Format * Continue * Fix TS errors * Cleanup * Make markdown work with server components * Format * Add visual test * Lint and format * Fix lifecycle * Implement textinput * Divider * Remove console logs * Remove listSpaceIntegrationsBlocks
12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
import { ContentKitImage } from '@gitbook/api';
|
|
|
|
import { 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" />;
|
|
}
|