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