import React, { useEffect, useRef } from 'react';
import { Button } from '@btri-ui/base';

const BasicButton = () => {
  const ref = useRef();
  useEffect(() => {
    console.log(ref);
  }, [ref]);
  return (
    <Button
      confirmConfig={{
        title: '请确认',
        onOk: () => {
          alert('确认');
        },
      }}
    >
      <div ref={ref}>我是一个确认按钮</div>
    </Button>
  );
};

export default BasicButton;
