@kiwicom/smart-faq
Version:
Smart FAQ
29 lines (22 loc) • 564 B
JavaScript
// @flow strict
import * as React from 'react';
import { track } from '../tracker';
import type { CuckooAction, CuckooProps, Subcategory } from '../cuckooTypes';
type Props = {|
subcategory: Subcategory,
action: CuckooAction,
props?: CuckooProps,
|};
// TODO replace by nitro LogMount
export default class LogMount extends React.Component<Props> {
static defaultProps = {
props: {},
};
componentDidMount() {
const { subcategory, action, props } = this.props;
track(subcategory, action, props);
}
render() {
return null;
}
}