mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user