mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-19 06:23:38 +02:00
12 lines
404 B
TypeScript
12 lines
404 B
TypeScript
//
|
|
// Copyright @ 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import type { Training } from '@hcengineering/training'
|
|
import type { Location } from '@hcengineering/ui'
|
|
import { trainingRoute } from '../routing/routes/trainingRoute'
|
|
|
|
export async function trainingLinkProviderEncode (object: Training, _props: Record<string, any>): Promise<Location> {
|
|
return trainingRoute.build({ id: object._id, tab: null })
|
|
}
|