Files
supabase/apps/www/hooks/useDarkLaunchWeeks.tsx
Francesco Sansalvadore 2feda5ee19 cms www blog (#38045)
* show cms blog posts in www
* remove contentlayer from www
* outputFileTracingExcludes
* update remotePatterns
* fetch cms posts server-side with revalidation
* add cms env vars to turbo.json
* add www env vars to turbo.json
* include cms posts in www sitemap
* add migration to remove image from cms post
* update cms meta image mapping in www
2025-09-03 14:49:28 +02:00

16 lines
414 B
TypeScript

'use client'
import { usePathname } from 'next/navigation'
const useDarkLaunchWeeks = () => {
const pathname = usePathname()
const isLaunchWeek7 = pathname?.startsWith('/launch-week/7')
const isLaunchWeek8 = pathname?.startsWith('/launch-week/8')
const isLaunchWeekX = pathname?.startsWith('/launch-week/x')
return isLaunchWeek7 || isLaunchWeek8 || isLaunchWeekX
}
export default useDarkLaunchWeeks