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


type IProps = {
  icon?: React.ReactNode;
  danger?: boolean;
  text?: string;
  onClick?: () => void;
};

const OpButton: React.FC<IProps> = ({ icon, danger, text, onClick }) => {
  return (
    <Button size="small" type="link" icon={icon} danger={danger} onClick={onClick}>{text}</Button>
  )
}

export default OpButton
