mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
15 lines
487 B
TypeScript
15 lines
487 B
TypeScript
import { FC } from 'react';
|
|
import { CreateView } from '@toeverything/framework/virgo';
|
|
import { BlockContainer } from '../../components/BlockContainer';
|
|
|
|
export function GridRender(creator: FC<CreateView>) {
|
|
return function GridWithItem(props: CreateView) {
|
|
const { editor, block } = props;
|
|
return (
|
|
<BlockContainer editor={editor} block={block} selected={false}>
|
|
{creator({ ...props })}
|
|
</BlockContainer>
|
|
);
|
|
};
|
|
}
|