// // Copyright © 2024 Hardcore Engineering Inc. // import { type Doc } from '@hcengineering/core' import { type IntlString, type Metadata, type Plugin, plugin, type Asset, type Resource } from '@hcengineering/platform' import { type AnyComponent } from '@hcengineering/ui' export const printId = 'print' as Plugin export const print = plugin(printId, { string: { PrintToPDF: '' as IntlString }, component: { PrintToPDF: '' as AnyComponent, DOCXViewer: '' as AnyComponent }, icon: { Print: '' as Asset }, metadata: { PrintURL: '' as Metadata }, function: { CanPrint: '' as Resource<(doc?: Doc | Doc[]) => Promise>, CanConvert: '' as Resource<() => Promise> } }) export default print