Skip to content
Snippets Groups Projects
Commit 816b3e18 authored by chris's avatar chris
Browse files

remove component

parent dad2a571
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,16 @@ class AskAiContentService extends Service { ...@@ -18,12 +18,16 @@ class AskAiContentService extends Service {
const config = this.config; const config = this.config;
// Create the overlay // Create the overlay
createOverlay(AskAIOverlay, config, { createOverlay(
nodeType: '', AskAIOverlay,
markType: '', { config },
followCursor: false, {
selection: true, nodeType: '',
}); markType: '',
followCursor: false,
selection: true,
},
);
} }
register() { register() {
......
...@@ -100,6 +100,7 @@ const SubmitButton = styled.button` ...@@ -100,6 +100,7 @@ const SubmitButton = styled.button`
`; `;
const AskAIOverlay = ({ setPosition, position, config }) => { const AskAIOverlay = ({ setPosition, position, config }) => {
return <span>hi</span>;
const { activeView, options } = useContext(WaxContext); const { activeView, options } = useContext(WaxContext);
const [result, setResult] = useState(''); const [result, setResult] = useState('');
const [isSubmitted, setIsSubmitted] = useState(false); const [isSubmitted, setIsSubmitted] = useState(false);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment