This commit is contained in:
Rizky 2024-02-05 23:54:38 +07:00
parent 78131ad081
commit e257f95838
2 changed files with 3 additions and 6 deletions

View File

@ -80,7 +80,7 @@ effect={async (local) => {
`\
<>{true && <div {...props}>{children}</div>}</>
`,
false
true
);
}}
>
@ -104,7 +104,7 @@ true ? (
}
</>
`,
false
true
);
}}
>

View File

@ -1,10 +1,7 @@
import trim from "lodash.trim";
import { isValidElement } from "react";
export const extractProp = (prop: {
values: Record<string, any>;
types: Record<string, string>;
}) => {
export const extractProp = (prop: { values: Record<string, any> }) => {
const propTypes: string[] = [];
const props: Record<string, { val?: any; type?: string }> = {};