mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
20 lines
498 B
TypeScript
20 lines
498 B
TypeScript
import { t } from "i18next";
|
|
import * as React from "react";
|
|
import { cdnPath } from "@shared/utils/urls";
|
|
import { Hook, PluginManager } from "~/utils/PluginManager";
|
|
import config from "../plugin.json";
|
|
import { Notion } from "./Imports";
|
|
|
|
PluginManager.add([
|
|
{
|
|
...config,
|
|
type: Hook.Imports,
|
|
value: {
|
|
title: "Notion",
|
|
subtitle: t("Import pages from Notion"),
|
|
icon: <img src={cdnPath("/images/notion.png")} width={28} />,
|
|
action: <Notion />,
|
|
},
|
|
},
|
|
]);
|