1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow
    
  8.  */
    
  9. 
    
  10. import * as React from 'react';
    
  11. import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
    
  12. 
    
  13. import styles from './TimelineNotSupported.css';
    
  14. 
    
  15. export default function TimelineNotSupported(): React.Node {
    
  16.   return (
    
  17.     <div className={styles.Column}>
    
  18.       <div className={styles.Header}>Timeline profiling not supported.</div>
    
  19.       <p className={styles.Paragraph}>
    
  20.         <span>
    
  21.           Timeline profiler requires a development or profiling build of{' '}
    
  22.           <code className={styles.Code}>react-dom@^18</code>.
    
  23.         </span>
    
  24.       </p>
    
  25.       <div className={styles.LearnMoreRow}>
    
  26.         Click{' '}
    
  27.         <a
    
  28.           className={styles.Link}
    
  29.           href="https://fb.me/react-devtools-profiling"
    
  30.           rel="noopener noreferrer"
    
  31.           target="_blank">
    
  32.           here
    
  33.         </a>{' '}
    
  34.         to learn more about profiling.
    
  35.       </div>
    
  36. 
    
  37.       {isInternalFacebookBuild && (
    
  38.         <div className={styles.MetaGKRow}>
    
  39.           <strong>Meta only</strong>: Enable the{' '}
    
  40.           <a
    
  41.             className={styles.Link}
    
  42.             href="https://fburl.com/react-devtools-scheduling-profiler-gk"
    
  43.             rel="noopener noreferrer"
    
  44.             target="_blank">
    
  45.             react_enable_scheduling_profiler GK
    
  46.           </a>
    
  47.           .
    
  48.         </div>
    
  49.       )}
    
  50.     </div>
    
  51.   );
    
  52. }