mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 19:06:31 +00:00
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import { ContentKitBox } from '@gitbook/api';
|
|
import React from 'react';
|
|
|
|
import { ContentKitServerElementProps } from './types';
|
|
|
|
export function ElementBox(
|
|
props: React.PropsWithChildren<ContentKitServerElementProps<ContentKitBox>>,
|
|
) {
|
|
const { element, children } = props;
|
|
|
|
return <div style={{ flexGrow: element.grow ?? 0 }}>{children}</div>;
|
|
}
|