/****************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation. * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 *****************************************************************************/ import { ChangeEvent, FC } from 'react'; import { Box, Skeleton, Switch, Typography, FormGroup, FormControlLabel } from '@mui/material'; export interface SettingsItemProps { title: string; description: string; checked: boolean; disabled?: boolean; loading?: boolean; onChange: (event: ChangeEvent, checked: boolean) => void; } export const SettingsItem: FC = ({ title, description, checked, disabled, loading, onChange, }) => { return ( {title} {description} {(loading) ? ( ) : ( } label={checked ? "Enabled" : "Disabled"} /> )} {description} ); };