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

Function ServicePicker

settings.tsx:454–475  ·  view source on GitHub ↗
(props: {
    onChange: (service: ServiceType) => void;
    value: ServiceType;
})

Source from the content-addressed store, hash-verified

452}
453
454function ServicePicker(props: {
455 onChange: (service: ServiceType) => void;
456 value: ServiceType;
457}) {
458 const { onChange, value } = props;
459
460 return (
461 <div className={cl("service-grid")}>
462 {serviceOptions.map(option => (
463 <button
464 key={option.value}
465 type="button"
466 className={cl("service-option")}
467 data-selected={option.value === value}
468 onClick={() => onChange(option.value)}
469 >
470 <span className={cl("service-option-label")}>{option.label}</span>
471 </button>
472 ))}
473 </div>
474 );
475}
476
477function FallbackOrderSettings() {
478 const update = useForceUpdater();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected