ultisuite-client/components/drive/drive-route-scope.tsx
2026-06-09 17:06:20 +02:00

21 lines
503 B
TypeScript

"use client"
import { useEffect } from "react"
import { clearMailBackgroundDom } from "@/lib/mail-settings/mail-background-dom"
/** Marks document as Drive scope: no mail wallpaper, no first-launch splash. */
export function DriveRouteScope() {
useEffect(() => {
const html = document.documentElement
html.dataset.routeScope = "drive"
html.dataset.splashSeen = "1"
clearMailBackgroundDom(html)
return () => {
delete html.dataset.routeScope
}
}, [])
return null
}