MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / Fullscreen

Function Fullscreen

apps/start/src/components/fullscreen-toggle.tsx:24–37  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

22 );
23
24export const Fullscreen = (props: Props) => {
25 const [isFullscreen] = useFullscreen();
26 return (
27 <div
28 className={cn(
29 isFullscreen
30 ? 'fixed inset-0 z-50 overflow-auto bg-def-200'
31 : 'w-full min-h-full col',
32 )}
33 >
34 {props.children}
35 </div>
36 );
37};
38
39export const FullscreenOpen = () => {
40 const [fullscreen, setIsFullscreen] = useFullscreen();

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
useFullscreenFunction · 0.85

Tested by

no test coverage detected