mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-02 08:56:02 +03:00
20 lines
416 B
JavaScript
20 lines
416 B
JavaScript
import * as React from "react";
|
|
import { css } from "@emotion/react";
|
|
|
|
const STYLES_ONBOARDING_OVERLAY = (theme) => css`
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
background-color: ${theme.semantic.bgBlurDark};
|
|
`;
|
|
|
|
export default function Overlay({ children, css, ...props }) {
|
|
return (
|
|
<div css={[STYLES_ONBOARDING_OVERLAY, css]} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|