import { useState } from 'react'; import { Switch } from '@patternfly/react-core'; export const SwitchWithoutLabel: React.FunctionComponent = () => { const [isChecked, setIsChecked] = useState(true); const handleChange = (_event: React.FormEvent, checked: boolean) => { setIsChecked(checked); }; return ( ); };