* backend integrations ui start * some more ui things * moving around some integration code * add dynatrace * add datadog, useform hook and other things to update backend logging integration forms * change api queries * backend logging modals * tracker: fix some types * remove deprecated integrations, update types * some ui fixes and improvements * update notifications on success/error * ui: debugging log output, autoclose fix * ui: some stuff for logs base64str * ui: improve log formatting, change datadog data format * some improvs for logging irm * ui: fixup for sentry
31 lines
631 B
TypeScript
31 lines
631 B
TypeScript
import { Avatar } from 'antd';
|
|
import React from 'react';
|
|
|
|
import ControlButton from 'App/components/Session_/Player/Controls/ControlButton';
|
|
import { Icon } from 'UI';
|
|
|
|
function LogsButton({
|
|
integrated,
|
|
onClick,
|
|
}: {
|
|
integrated: string[];
|
|
onClick: () => void;
|
|
}) {
|
|
|
|
return (
|
|
<ControlButton
|
|
label={'Traces'}
|
|
customTags={
|
|
<Avatar.Group>
|
|
{integrated.map((name) => (
|
|
<Avatar key={name} size={16} src={<Icon name={`integrations/${name}`} size={14} />} />
|
|
))
|
|
}
|
|
</Avatar.Group>
|
|
}
|
|
onClick={onClick}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default LogsButton;
|