feat: host functionality

This commit is contained in:
TrèsAbhi committed 2024-10-28 10:30:53 -05:00
1 parent 3c7a10a949
commit 8512557e76
6 files changed
+93 -34

No files matched your search

@@ -9,9 +9,9 @@ interface PreviewWrapperProps {
}
export function PreviewWrapper({ name }: PreviewWrapperProps) {
const { useState } = useEmbedStateCurry();
const width = useState('width');
const height = useState('height');
const { useEmbedState } = useEmbedStateCurry();
const width = useEmbedState('width');
const height = useEmbedState('height');
const Preview = embedPreviews[name];
const wrapper = useRef<HTMLDivElement>(null);