-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathindex.ts
More file actions
24 lines (21 loc) · 684 Bytes
/
index.ts
File metadata and controls
24 lines (21 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { JsxWidget } from "@web-builder/core";
import { react as react_config } from "@grida/builder-config";
import {
ReactInlineCssBuilder,
ReactInlineCssWidgetModuleExportable,
} from "./react-inline-css-module-builder";
interface Config {
styling: react_config.ReactInlineCssConfig;
exporting: react_config.ReactComponentExportingCofnig;
}
export default function finalizeReactWidget_InlineCss(
entry: JsxWidget,
{ styling, exporting }: Config
) {
const builder = new ReactInlineCssBuilder({
entry,
config: styling,
});
return builder.asExportableModule().finalize(exporting);
}
export { ReactInlineCssBuilder, ReactInlineCssWidgetModuleExportable };