@kiwicom/smart-faq
Version:
32 lines (26 loc) • 641 B
JavaScript
// @flow strict
import * as React from 'react';
import type { Props as EventProps } from '@kiwicom/nitro/lib/records/Event';
import LogMount from './LogMount';
import LogUnmount from './LogUnmount';
type Props = {|
subCategory: string,
actionMount: string,
actionUnmount: string,
props?: EventProps,
|};
const LogLifecycle = (props: Props) => (
<>
<LogMount
subCategory={props.subCategory}
action={props.actionMount}
props={props.props}
/>
<LogUnmount
subCategory={props.subCategory}
action={props.actionUnmount}
props={props.props}
/>
</>
);
export default LogLifecycle;