import React from 'react';
import { Button } from 'antd';

interface CustomButtonProps {
    text: string
    type: 'default' | 'primary' | 'dashed' | 'link'
    onClick: () => void
}

const CustomButton: React.FC<CustomButtonProps> = ({ text, type, onClick }) => {
  return (
    <Button type={type} onClick={onClick}>
      {text}
    </Button>
  );
};

export default CustomButton;
