mirror of
https://github.com/bakhirev/assayo.git
synced 2026-04-28 19:50:11 +00:00
34 lines
682 B
TypeScript
34 lines
682 B
TypeScript
import React from 'react';
|
|
|
|
import {
|
|
IPlugin,
|
|
PageOptions,
|
|
} from 'ts/helpers/Plugins/interfaces/Plugin';
|
|
|
|
import translations from './translations';
|
|
import Page from './components';
|
|
|
|
export default class Plugin implements IPlugin {
|
|
static id = 'team_tasks';
|
|
|
|
getMenuItems() {
|
|
return [
|
|
{
|
|
id: 'tasks',
|
|
group: 40,
|
|
order: 170,
|
|
link: '/team/tasks',
|
|
title: 'plugin.team_tasks.sidebar',
|
|
icon: './assets/menu/tasks.svg',
|
|
},
|
|
];
|
|
}
|
|
|
|
getPage(path: string, props?: PageOptions) {
|
|
return path === '/team/tasks' ? <Page mode={props?.mode}/> : undefined;
|
|
}
|
|
|
|
getTranslations() {
|
|
return translations;
|
|
}
|
|
}
|