| 1 | // Repro for fbt scope range sync: when expandFbtScopeRange modifies |
| 2 | // scope.range.start, identifier mutable_ranges must be synced so |
| 3 | // MergeOverlappingReactiveScopesHIR can detect the overlap. |
| 4 | import fbt from 'fbt'; |
| 5 | |
| 6 | function Component({size, icon}) { |
| 7 | return ( |
| 8 | <Badge icon={icon}> |
| 9 | {fbt( |
| 10 | `Available in ${fbt.param('size', size)} only`, |
| 11 | 'Badge text with dynamic param' |
| 12 | )} |
| 13 | </Badge> |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | export const FIXTURE_ENTRYPOINT = { |
| 18 | fn: Component, |
| 19 | params: [{size: 'Large', icon: 'rx'}], |
| 20 | }; |