feat(): Add and move custom components to custom folder

This commit is contained in:
Depickere Sven 2023-04-21 10:48:09 +02:00
parent 1beb85d25d
commit 8d1dbf42f1
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import * as React from 'react';
import { MenuItemTitle, OperationBadge } from '../SideMenu';
import { observer } from 'mobx-react';
import { shortenHTTPVerb } from '../../utils';
export interface ExtraOperationInformationProps {
httpVerb: string;
label: string;
}
export const ExtraOperationInformation = observer((props: ExtraOperationInformationProps) => {
const item = props;
return (
<div>
<OperationBadge type={item.httpVerb}>{shortenHTTPVerb(item.httpVerb)}</OperationBadge>
<MenuItemTitle width="calc(100% - 38px)">{item.label}</MenuItemTitle>
</div>
);
});