import React from 'react';
import { Invoice } from '../../..';

export default () => {
  const controller = React.useMemo(() => new Invoice.InvoiceController(), []);

  React.useEffect(() => {
    controller.pipeline(async (s) => {
      s.goodsListState.unitList = ['个', '吨', '米'];
      s.goodsListState.taxRateList = [1, 2, 3, 4, 5, 80];
    })();
  }, []);

  return (
    <div>
      <Invoice controller={controller} />
    </div>
  );
};
