mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* feat: hide navigation when ?standalone=true URL parameter is present Co-Authored-By: [email protected] <[email protected]> * feat: standalone page config to use in companion --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
9 lines
204 B
TypeScript
9 lines
204 B
TypeScript
"use client";
|
|
|
|
import { useSearchParams } from "next/navigation";
|
|
|
|
export const useIsStandalone = () => {
|
|
const searchParams = useSearchParams();
|
|
return searchParams?.get("standalone") === "true";
|
|
};
|