MCPcopy Create free account
hub / github.com/Noumena-Network/code / FullscreenLayout

Function FullscreenLayout

src/components/FullscreenLayout.tsx:271–461  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

269 * so nothing can accidentally render outside it.
270 */
271export function FullscreenLayout(t0) {
272 recordRenderTrace('FullscreenLayout');
273 const $ = _c(47);
274 const {
275 scrollable,
276 bottom,
277 overlay,
278 bottomFloat,
279 modal,
280 modalScrollRef,
281 scrollRef,
282 dividerYRef,
283 hidePill: t1,
284 hideSticky: t2,
285 newMessageCount: t3,
286 onPillClick
287 } = t0;
288 const hidePill = t1 === undefined ? false : t1;
289 const hideSticky = t2 === undefined ? false : t2;
290 const newMessageCount = t3 === undefined ? 0 : t3;
291 const {
292 rows: terminalRows,
293 columns
294 } = useTerminalSize();
295 const [stickyPrompt, setStickyPrompt] = useState(null);
296 let t4;
297 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
298 t4 = {
299 setStickyPrompt
300 };
301 $[0] = t4;
302 } else {
303 t4 = $[0];
304 }
305 const chromeCtx = t4;
306 let t5;
307 if ($[1] !== scrollRef) {
308 t5 = listener => scrollRef?.current?.subscribe(listener) ?? _temp;
309 $[1] = scrollRef;
310 $[2] = t5;
311 } else {
312 t5 = $[2];
313 }
314 const subscribe = t5;
315 let t6;
316 if ($[3] !== dividerYRef || $[4] !== scrollRef) {
317 t6 = () => {
318 const s = scrollRef?.current;
319 const dividerY = dividerYRef?.current;
320 if (!s || dividerY == null) {
321 return false;
322 }
323 return s.getScrollTop() + s.getPendingDelta() + s.getViewportHeight() < dividerY;
324 };
325 $[3] = dividerYRef;
326 $[4] = scrollRef;
327 $[5] = t6;
328 } else {

Callers

nothing calls this directly

Calls 3

recordRenderTraceFunction · 0.85
useTerminalSizeFunction · 0.85
isFullscreenEnvEnabledFunction · 0.85

Tested by

no test coverage detected