feat: create action ui directory

This commit is contained in:
amhsirak
2025-01-09 20:15:27 +05:30
parent 8c5a5d7993
commit 78e9ac1fd8
8 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
import { WarningText } from "../../ui/texts";
import InfoIcon from "@mui/icons-material/Info";
import { KeyValueForm } from "../../recorder/KeyValueForm";
export const ScrapeSchemaSettings = forwardRef((props, ref) => {
const keyValueFormRef = useRef<{ getObject: () => object }>(null);
useImperativeHandle(ref, () => ({
getSettings() {
const settings = keyValueFormRef.current?.getObject() as Record<string, string>
return settings;
}
}));
return (
<div>
<WarningText>
<InfoIcon color='warning' />
The interpreter scrapes the data from a webpage into a "curated" table.
</WarningText>
<KeyValueForm ref={keyValueFormRef} />
</div>
);
});