import SyncMenu from '../../js/features/editor-left-menu/components/sync-menu' import { ScopeDecorator } from '../decorators/scope' import { useScope } from '../hooks/use-scope' export default { title: 'Editor / Left Menu / Sync Menu', component: SyncMenu, decorators: [ScopeDecorator], } export const WriteAccess = () => { window.metaAttributesCache.set('ol-anonymous', false) useScope({ permissionsLevel: 'owner', }) return (
) } export const ReadOnlyAccess = () => { window.metaAttributesCache.set('ol-anonymous', false) useScope({ permissionsLevel: 'readOnly', }) return ( ) }