MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / SettingSwitch

Function SettingSwitch

settings.tsx:439–452  ·  view source on GitHub ↗
(props: {
    checked: boolean;
    description: string;
    name: string;
    onChange: (value: boolean) => void;
})

Source from the content-addressed store, hash-verified

437}
438
439function SettingSwitch(props: {
440 checked: boolean;
441 description: string;
442 name: string;
443 onChange: (value: boolean) => void;
444}) {
445 const { checked, description, name, onChange } = props;
446
447 return (
448 <SettingsSection id={name} tag="label" name={name} description={description} inlineSetting>
449 <Switch checked={checked} onChange={onChange} />
450 </SettingsSection>
451 );
452}
453
454function ServicePicker(props: {
455 onChange: (service: ServiceType) => void;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected