Home / File/ lambda-with-fbt.js — react Source File

lambda-with-fbt.js — react Source File

Architecture documentation for lambda-with-fbt.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  85cbb0c2_b9e2_0841_acaa_8b2dadb64716["lambda-with-fbt.js"]
  2db15464_200a_540f_8671_b62de113ab09["fbt"]
  85cbb0c2_b9e2_0841_acaa_8b2dadb64716 --> 2db15464_200a_540f_8671_b62de113ab09
  style 85cbb0c2_b9e2_0841_acaa_8b2dadb64716 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {fbt} from 'fbt';

function Component() {
  const buttonLabel = () => {
    if (!someCondition) {
      return <fbt desc="My label">{'Purchase as a gift'}</fbt>;
    } else if (
      !iconOnly &&
      showPrice &&
      item?.current_gift_offer?.price?.formatted != null
    ) {
      return (
        <fbt desc="Gift button's label">
          {'Gift | '}
          <fbt:param name="price">
            {item?.current_gift_offer?.price?.formatted}
          </fbt:param>
        </fbt>
      );
    } else if (!iconOnly && !showPrice) {
      return <fbt desc="Gift button's label">{'Gift'}</fbt>;
    }
  };

  return (
    <View>
      <Button text={buttonLabel()} />
    </View>
  );
}

Subdomains

Functions

Dependencies

  • fbt

Frequently Asked Questions

What does lambda-with-fbt.js do?
lambda-with-fbt.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in lambda-with-fbt.js?
lambda-with-fbt.js defines 1 function(s): Component.
What does lambda-with-fbt.js depend on?
lambda-with-fbt.js imports 1 module(s): fbt.
Where is lambda-with-fbt.js in the architecture?
lambda-with-fbt.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt/lambda-with-fbt.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/fbt).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free