mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
refactor(infra): directory structure (#4615)
This commit is contained in:
11
packages/plugins/image-preview/src/app.tsx
Normal file
11
packages/plugins/image-preview/src/app.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { Page } from '@blocksuite/store';
|
||||
|
||||
import { ImagePreviewModal } from './component';
|
||||
|
||||
export type AppProps = {
|
||||
page: Page;
|
||||
};
|
||||
|
||||
export const App = ({ page }: AppProps) => {
|
||||
return <ImagePreviewModal pageId={page.id} workspace={page.workspace} />;
|
||||
};
|
||||
Reference in New Issue
Block a user