MCPcopy Create free account
hub / github.com/cartesiancs/map3d / FullscreenModal

Function FullscreenModal

src/components/FullscreenModal.tsx:4–34  ·  view source on GitHub ↗
({
  children,
  isOpen = false,
}: {
  children: React.ReactNode;
  isOpen?: boolean;
})

Source from the content-addressed store, hash-verified

2import React from "react";
3
4export function FullscreenModal({
5 children,
6 isOpen = false,
7}: {
8 children: React.ReactNode;
9 isOpen?: boolean;
10}) {
11 return (
12 <div
13 css={css({
14 width: "100%",
15 height: "100%",
16 position: "fixed",
17 zIndex: 999,
18 backgroundColor: "#ffffffc9",
19 backdropFilter: "blur(12px)",
20 display: isOpen ? "flex" : "none",
21 })}
22 >
23 <div
24 css={css({
25 padding: "2rem",
26 paddingTop: "4rem",
27 width: "100%",
28 })}
29 >
30 {children}
31 </div>
32 </div>
33 );
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected