import { toast, Tooltip } from '@affine/component'; import { BlockCard } from '@affine/component/card/block-card'; import { WorkspaceCard } from '@affine/component/card/workspace-card'; import { WorkspaceFlavour } from '@affine/env/workspace'; import { getOrCreateWorkspace } from '@affine/workspace/manager'; import { EdgelessIcon, ExportToHtmlIcon, HelpIcon, PageIcon, } from '@blocksuite/icons'; export default { title: 'AFFiNE/Card', component: WorkspaceCard, }; const blockSuiteWorkspace = getOrCreateWorkspace( 'blocksuite-local', WorkspaceFlavour.LOCAL ); blockSuiteWorkspace.meta.setName('Hello World'); export const AffineWorkspaceCard = () => { return ( {}} onSettingClick={() => {}} currentWorkspaceId={null} /> ); }; export const AffineBlockCard = () => { return (
toast('clicked')} /> } onClick={() => toast('clicked page')} /> } right={} onClick={() => toast('clicked edgeless')} /> } title="HTML" disabled right={ } onClick={() => toast('click HTML')} />
); };