Files
super-app/components/reusable/header/CommonHeader.tsx
Kshitij Pramod Ghongadi f95cdfe35d NTP-15148 | GI | Self Serve Plan Migration Flow (#14226)
Co-authored-by: Prajjaval Verma <prajjaval.verma@navi.com>
Co-authored-by: Balrambhai Sharma <sharma.balrambhai@navi.com>
2024-12-24 11:00:57 +00:00

26 lines
693 B
TypeScript

import Animated from "react-native-reanimated";
import { WidgetComponentProps } from "../../../App/common/interface/components";
import WidgetViewRenderer from "../../widget-view-renderer/WidgetViewRenderer";
const CommonHeader = ({
screenData,
handleActions,
handleClick,
style,
pointerEvents,
}: WidgetComponentProps) => {
return (
<Animated.View style={style}>
<WidgetViewRenderer
widgetList={screenData?.screenWidgets?.headerWidgets}
handleActions={handleActions}
screenState={screenData?.screenState}
handleClick={handleClick}
pointerEvents={pointerEvents}
/>
</Animated.View>
);
};
export default CommonHeader;