2022-08-03 17:42:22 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { recordEvent } from '@woocommerce/tracks';
|
|
|
|
import { useEffect } from '@wordpress/element';
|
|
|
|
|
2022-08-04 13:15:30 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2022-12-05 20:46:21 +00:00
|
|
|
import { ProductForm } from './product-form';
|
2022-12-16 14:20:10 +00:00
|
|
|
import './product-page.scss';
|
2022-08-04 13:15:30 +00:00
|
|
|
|
|
|
|
const AddProductPage: React.FC = () => {
|
2022-08-03 17:42:22 +00:00
|
|
|
useEffect( () => {
|
|
|
|
recordEvent( 'view_new_product_management_experience' );
|
|
|
|
}, [] );
|
2022-08-11 14:04:14 +00:00
|
|
|
|
2022-08-03 17:42:22 +00:00
|
|
|
return (
|
|
|
|
<div className="woocommerce-add-product">
|
2022-12-05 20:46:21 +00:00
|
|
|
<ProductForm />
|
2022-08-03 17:42:22 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
2022-08-04 13:15:30 +00:00
|
|
|
|
|
|
|
export default AddProductPage;
|