mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
* [TIP] Add Threat Intelligence plugin - create Threat Intelligence plugin and integrate with Security Solution plugin - setup jest unit tests, i18n, Cypress tests and Storybook - fetch Indicator of Compromise, and display in data-grid - add flyout components to show IOCs details (table and JSON) - add new threatIntelInt entry to kbn-doc-links package https://github.com/elastic/security-team/issues/4329 https://github.com/elastic/security-team/issues/4138 https://github.com/elastic/security-team/issues/4241 https://github.com/elastic/security-team/issues/4242 https://github.com/elastic/security-team/issues/4244 https://github.com/elastic/security-team/issues/4245 Co-authored-by: lgmys <lgmys@pm.me> Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
34 lines
988 B
TypeScript
34 lines
988 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import { EuiPageHeader, EuiPageHeaderSection, EuiSpacer, EuiText } from '@elastic/eui';
|
|
import React, { FC } from 'react';
|
|
|
|
export interface LayoutProps {
|
|
pageTitle?: string;
|
|
border?: boolean;
|
|
}
|
|
|
|
export const TITLE_TEST_ID = 'tiDefaultPageLayoutTitle';
|
|
|
|
export const DefaultPageLayout: FC<LayoutProps> = ({ children, pageTitle, border = true }) => {
|
|
return (
|
|
<>
|
|
<EuiPageHeader alignItems="center" bottomBorder={border}>
|
|
<EuiPageHeaderSection>
|
|
{pageTitle && (
|
|
<EuiText>
|
|
<h2 data-test-subj={TITLE_TEST_ID}>{pageTitle}</h2>
|
|
</EuiText>
|
|
)}
|
|
</EuiPageHeaderSection>
|
|
</EuiPageHeader>
|
|
<EuiSpacer size="l" />
|
|
{children}
|
|
</>
|
|
);
|
|
};
|