@kiwicom/smart-faq
Version:
Smart FAQ
32 lines (26 loc) • 660 B
JavaScript
// @flow strict
import * as React from 'react';
import LogMount from './LogMount';
import LogUnmount from './LogUnmount';
import type { CuckooAction, CuckooProps, Subcategory } from '../cuckooTypes';
type Props = {|
subcategory: Subcategory,
actionMount: CuckooAction,
actionUnmount: CuckooAction,
props?: CuckooProps,
|};
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;