/ src / components / demo / enhanced_fp / screen_orientation.tsx
screen_orientation.tsx
 1  import Code from "../../Code";
 2  import Output from "../../Output";
 3  
 4  const ScreenOrientationDemo = () => {
 5    return (
 6      <div>
 7        <Code
 8          snippet={`
 9  screen && screen.orientation && screen.orientation.type
10    ? screen.orientation.type
11    : null
12          `.trim()}
13        />
14  
15        <Output
16          generator={() => {
17            return screen && screen.orientation && screen.orientation.type
18              ? screen.orientation.type
19              : null;
20          }}
21        />
22      </div>
23    );
24  };
25  
26  export default ScreenOrientationDemo;