"use client" /** * "Home layout" block for the profile menu — the switch between the two * `/home` variants (`use-home-variant`). * * Lives in the profile menu rather than on the page itself for the same reason * theme does: it is a standing preference about a surface, not an action on the * content in front of you, and putting a layout control in the page's own * header would spend the most valuable row on the page on a setting most people * set once. * * Rendered in both profile menus — the utility bar's avatar (the one that is * actually visible on `/home`, since the shell strips the sidebar there) and * the sidebar's `NavUser`, so someone who changes their mind from inside a * product does not have to go back to home to find the control. */ import { DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, } from "@/components/ui/dropdown-menu" import { HOME_VARIANTS, setHomeVariant, useHomeVariant, type HomeVariant, } from "@/hooks/use-home-variant" export function HomeLayoutMenu() { const variant = useHomeVariant() const active = HOME_VARIANTS.find(option => option.id === variant) return (