({
children,
isOpen = false,
}: {
children: React.ReactNode;
isOpen?: boolean;
})
| 2 | import React from "react"; |
| 3 | |
| 4 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected