-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathindex.tsx
More file actions
55 lines (48 loc) · 1.62 KB
/
index.tsx
File metadata and controls
55 lines (48 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import React from 'react';
import { Alert, Content, Label, Title } from '@patternfly/react-core';
import { InfoCircleIcon } from '@patternfly/react-icons';
import { CustomizationLabels } from '@/Components/sharedComponents/CustomizationLabels';
import { useSecuritySummary } from '@/store/api/backend';
import { useAppSelector } from '@/store/hooks';
import { selectFips } from '@/store/slices/wizard';
import KernelArguments from './components/KernelArguments';
import KernelName from './components/KernelName';
const KernelStep = () => {
const fips = useAppSelector(selectFips);
const {
kernel: { append: requiredByOpenSCAP },
} = useSecuritySummary();
return (
<>
<CustomizationLabels customization='kernel' />
<Content>
<Title
headingLevel='h2'
size='lg'
className='pf-v6-u-display-flex pf-v6-u-align-items-center'
>
Kernel
{requiredByOpenSCAP.length > 0 && (
<Label icon={<InfoCircleIcon />} className='pf-v6-u-ml-sm'>
{requiredByOpenSCAP.length} Added by OpenSCAP
</Label>
)}
</Title>
<Content component='small'>
Choose a kernel package and append specific boot parameters to
customize how your image initializes its core operating environment.
</Content>
</Content>
{fips.enabled && (
<Alert
title='Kernel will be configured to use FIPS, no additional configuration needed.'
variant='info'
isInline
/>
)}
<KernelName />
<KernelArguments />
</>
);
};
export default KernelStep;