import type { ReactNode } from 'react' import ToggleSwitch from '../Settings/ToggleSwitch' import { fs } from '../shared/DialogShell' /** * One child row inside an {@link AddonTile}'s sub-shelf: bag tracking under * Lists, a collab feature under Collab, a photo provider under Journey. * * A photo provider without a vendor mark has to stay free of `` * (FE-ADMIN-ADDON-015), which is why `icon` falls back to a fixed-width spacer * rather than a placeholder glyph. Nothing else belongs in this row either: no * chevron, no status dot, no lucide fallback. * * The row carries its title only; the description rides along as the `title` * tooltip, because a second line of text is what makes a child weigh as much as * an addon. */ export default function AddonSubRow({ icon, title, description, enabled, onToggle, }: { /** Vendor mark or lucide glyph at 14px. Omit it and the slot keeps its width. */ icon?: ReactNode title: string description?: string enabled: boolean onToggle: () => void }) { return (
  • {icon ? {icon} : } {title}
  • ) }