We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12b667 commit c6d375bCopy full SHA for c6d375b
src/app/page.tsx
@@ -1,7 +1,17 @@
1
import { weatherWidgetFlag } from "./flags";
2
+import WeatherClient from "./components/WeatherClient";
3
-export default async function Page() {
4
- const weather = await weatherWidgetFlag();
+export default async function Home() {
5
+ const isWeatherWidgetEnabled = await weatherWidgetFlag();
6
- return <div>{weather ? "Flag is on" : "Flag is off"}</div>;
7
+ return (
8
+ <div className="container">
9
+ <h1>Welcome to Next.js + Playwright</h1>
10
+ {isWeatherWidgetEnabled ? (
11
+ <WeatherClient isEnabled={isWeatherWidgetEnabled} />
12
+ ) : (
13
+ <p>🚫 Feature X is OFF</p>
14
+ )}
15
+ </div>
16
+ );
17
}
0 commit comments