import { useLocal } from "lib/utils/use-local"; import get from "lodash.get"; import { FC, ReactNode, useEffect } from "react"; import { PTLocalInternal, PTProp } from "./utils/typings"; export const PanelTab: FC = ({ header, body, tab, PassProp, item }) => { const local = useLocal({ mode: "", }); useEffect(() => { local.mode = tab; local.render(); console.log({local}) }, [tab]) const header_list = get(item, "component.props.header.content.childs") || []; return (
{header} {body}
); };