supermemory/apps/web/app/new/layout.tsx
Prasanna721 11a0abd5c0 feat: migrate to api_pro billing and add credits-based usage display (#729)
Summary

  - Migrate from consumer_pro to api_pro billing product across the app
  - Enable Nova app for all users (remove feature flag)
  - Add credits-based usage tracking with tokens abstraction
2026-02-10 05:53:47 +00:00

28 lines
540 B
TypeScript

"use client"
import { useEffect } from "react"
import { useFeatureFlagEnabled } from "posthog-js/react"
import { useRouter } from "next/navigation"
import { MobileBanner } from "@/components/new/mobile-banner"
export default function NewLayout({ children }: { children: React.ReactNode }) {
const router = useRouter()
const flagEnabled = true
useEffect(() => {
if (!flagEnabled) {
router.push("/")
}
}, [flagEnabled, router])
if (!flagEnabled) {
return null
}
return (
<>
<MobileBanner />
{children}
</>
)
}