29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
import { WebComponentProps } from "oak-frontend-base";
|
|
import { EntityDict } from "../../../oak-app-domain";
|
|
import { GenerateUrlFn } from "../../../types/Article";
|
|
export default function Render(props: WebComponentProps<EntityDict, 'articleMenu', false, {
|
|
entity: string;
|
|
entityId: string;
|
|
title: string;
|
|
breadcrumbItems: {
|
|
id: string;
|
|
title: string;
|
|
}[];
|
|
origin: null | EntityDict['extraFile']['Schema']['origin'];
|
|
menuEmpty: React.ReactNode | undefined;
|
|
articleEmpty: React.ReactNode | undefined;
|
|
parentId: string | undefined;
|
|
showAddArticle: boolean;
|
|
showAddMenu: boolean;
|
|
articleMenuId: string;
|
|
generateUrl: GenerateUrlFn;
|
|
}, {
|
|
onBreadcrumItemClick: (id: string) => void;
|
|
onMenuClick: (menuId: string, menuName: string, isArticle: boolean) => void;
|
|
onAddMenu: (menuName: string) => Promise<boolean>;
|
|
changeAddArticle: (show: boolean) => void;
|
|
onAddArticle: () => void;
|
|
menuCheck: (isArticle: boolean) => void;
|
|
}>): React.JSX.Element;
|