mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-28 15:48:12 +00:00
* fix: [FE-3128]: Logs Explorer: Show options based on format type selected * fix: build is fixed --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com>
34 lines
813 B
TypeScript
34 lines
813 B
TypeScript
import { Col, Row } from 'antd';
|
|
import OptionsMenu from 'container/OptionsMenu';
|
|
import PageSizeSelect from 'container/PageSizeSelect';
|
|
|
|
import { ExplorerControlPanelProps } from './ExplorerControlPanel.interfaces';
|
|
import { ContainerStyled } from './styles';
|
|
|
|
function ExplorerControlPanel({
|
|
selectedOptionFormat,
|
|
isLoading,
|
|
isShowPageSize,
|
|
optionsMenuConfig,
|
|
}: ExplorerControlPanelProps): JSX.Element {
|
|
return (
|
|
<ContainerStyled>
|
|
<Row justify="end" gutter={30}>
|
|
{optionsMenuConfig && (
|
|
<Col>
|
|
<OptionsMenu
|
|
selectedOptionFormat={selectedOptionFormat}
|
|
config={optionsMenuConfig}
|
|
/>
|
|
</Col>
|
|
)}
|
|
<Col>
|
|
<PageSizeSelect isLoading={isLoading} isShow={isShowPageSize} />
|
|
</Col>
|
|
</Row>
|
|
</ContainerStyled>
|
|
);
|
|
}
|
|
|
|
export default ExplorerControlPanel;
|