* Chore disable git submodule for web-client and app-backend * Chore add newest source code of app-backend and web-client --------- Co-authored-by: Hien To <tominhhien97@gmail.com>
17 lines
362 B
TypeScript
17 lines
362 B
TypeScript
"use client";
|
|
import React, { useEffect } from "react";
|
|
|
|
export function withAnalytics<P extends Record<string, any>>(
|
|
Component: React.ComponentType<P>
|
|
): React.FC<P> {
|
|
const WrappedComponent: React.FC<P> = (props) => {
|
|
|
|
useEffect(() => {
|
|
// Initialize analytics
|
|
}, []);
|
|
|
|
return <Component {...props} />;
|
|
};
|
|
return WrappedComponent;
|
|
}
|