import { type Class, type Doc, type Ref } from '@hcengineering/core' import { type Builder } from '@hcengineering/model' import view, { createAction } from '@hcengineering/model-view' import { type Action } from '@hcengineering/view' import guest from './plugin' export function createPublicLinkAction (builder: Builder, _class: Ref>, _id: Ref>): void { createAction( builder, { action: view.actionImpl.ShowPopup, actionProps: { component: guest.component.CreatePublicLink, element: 'top', fillProps: { _objects: 'value' } }, label: guest.string.PublicLink, icon: guest.icon.Link, keyBinding: [], input: 'any', category: guest.category.Guest, target: _class, context: { mode: ['context', 'browser'] } }, _id ) }