import React from 'react'; import { FormGroup, Label, Radio } from '@patternfly/react-core'; import { useAppDispatch, useAppSelector } from '../../../../store/hooks'; import { changeFileSystemConfigurationType, selectFileSystemConfigurationType, selectComplianceProfileID, } from '../../../../store/wizardSlice'; const FileSystemPartition = () => { const dispatch = useAppDispatch(); const fileSystemConfigurationType = useAppSelector( selectFileSystemConfigurationType ); const hasOscapProfile = useAppSelector(selectComplianceProfileID); if (hasOscapProfile) { return undefined; } return ( {' '} Use automatic partitioning } name="sc-radio-automatic" description="Automatically partition your image to what is best, depending on the target environment(s)" isChecked={fileSystemConfigurationType === 'automatic'} onChange={() => { dispatch(changeFileSystemConfigurationType('automatic')); }} /> { dispatch(changeFileSystemConfigurationType('manual')); }} /> ); }; export default FileSystemPartition;