interface SampleTrackableProps {
application?: any;
applicationId?: string;
catalog?: any;
sandbox?: any;
tenant?: object;
tenantId?: string;
}
const SampleTrackable: FC<SampleTrackableProps> = props => {
const {
application,
applicationId,
catalog,
sandbox,
tenant,
tenantId
} = props;
// effects and other operations
return (
// some component
);
};
const mapTrackingToProps = state => {
return {
application: state.application,
applicationId: state.applicationId,
catalog: state.catalog,
sandbox: state.sandbox,
tenant: state.tenant,
tenantId: state.tenantId
};
};
export default connectTracking(mapTrackingToProps)(SampleTrackable);