TypeScript
fix(web): read panel animation settings in the composer (#13098)
Julius Marminge7c2702d68ae2
diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsxindex 28c59ecf90e..f1de1f81434 100644--- a/apps/web/src/components/chat/ChatComposer.tsx+++ b/apps/web/src/components/chat/ChatComposer.tsx@@ -977,6 +977,7 @@ import {} from "@t3tools/client-runtime/providerSkills";import { searchProviderSkills } from "../../providerSkillSearch";import { useMediaQuery } from "../../hooks/useMediaQuery";+import { usePanelAnimationSettings } from "../../panelAnimations";import { useAtomCommand } from "../../state/use-atom-command";import { serverEnvironment } from "../../state/server";import type { ReviewCommentContext } from "../../reviewCommentContext";@@ -4825,6 +4826,8 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)) : null}</div>) : null;+ const { active: panelAnimationsActive, durationMs: panelAnimationDurationMs } =+ usePanelAnimationSettings();const composerMainSurfaceRef = useComposerRestingTransition(composerControlsInStrip,isComposerResting,