/* @aztlan/generator-front 0.13.0 */ import * as React from 'react' import { useInsertionEffect } from 'react' import * as PropTypes from 'prop-types' import { InferProps } from 'prop-types' import styleNames from '@aztlan/bem' const baseClassName = styleNames.base const componentClassName = 'test-component' /** * description * @param {InferProps} props - * @returns {React.ReactElement} - Rendered TestComponent */ function TestComponent({ id, className: userClassName, style, children, }: // ...otherProps InferProps): React.ReactElement { useInsertionEffect( () => { // @ts-ignore import('./styles.scss') }, [], ) return (
e) .join(' ')} style={style} // {...otherProps} > THIS IS A TEST
{children}
) } TestComponent.propTypes = { /** The HTML id for this element */ id:PropTypes.string, /** The HTML class names for this element */ className:PropTypes.string, /** The React-written, css properties for this element. */ style:PropTypes.objectOf(PropTypes.string), /** The children JSX */ children:PropTypes.node, } export default TestComponent