mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-24 17:05:42 +00:00
32 lines
762 B
TypeScript
32 lines
762 B
TypeScript
//
|
|
// 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<string>
|
|
},
|
|
function: {
|
|
CanPrint: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
|
CanConvert: '' as Resource<() => Promise<boolean>>
|
|
}
|
|
})
|
|
|
|
export default print
|