import React, { useEffect, useState } from 'react';
import type { PlasmoCSConfig, PlasmoGetInlineAnchor, PlasmoGetStyle } from "plasmo";
import type { generateKey } from "crypto";
import { renderToString } from 'react-dom/server';
import createCache from "@emotion/cache";
import { CacheProvider } from "@emotion/react";
import { SuggestionModal } from './content.styled';
export const config: PlasmoCSConfig = {
matches: ["https://mail.google.com/*"],
run_at: "document_end"
}
// export const getOverlayAnchorList = () => document.querySelectorAll(".bAs");
export const PlasmoGetOverlayAnchor = () => document.querySelectorAll(".bkK");
const OverlayModal = () => {
return (
<SuggestionModal/>
);
}
export default OverlayModal;
How would I createa a single Modal context to mount over 'body' while still having my ComposeToolbar inline within the compose view? If I create 2 separate CSUI components (Modal, ComposeToolbar) then I would still need to somehow have the openModal() function open the Modal. Any help would be appreciated!
Is there any context that might help us understand?
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.
What is the example you wish to see?
I would like to have a button open a top level Modal.
This is my gmail compose view component:
This is the OverlayModal component:
How would I createa a single Modal context to mount over 'body' while still having my ComposeToolbar inline within the compose view? If I create 2 separate CSUI components (Modal, ComposeToolbar) then I would still need to somehow have the openModal() function open the Modal. Any help would be appreciated!
Is there any context that might help us understand?
No response
Code of Conduct