// src/components/MiBoton.tsx

import { Button } from '@mantine/core';
import { MouseEventHandler } from 'react';

type MiBotonProps = {
  onClick: MouseEventHandler<HTMLButtonElement>;
  label?: string;
  color?: string;
};

function MiBoton({ onClick, label = 'Hola que tal!', color = 'teal' }: MiBotonProps) {
  return <Button color={color} onClick={onClick}>{label}</Button>;
}

export default MiBoton;
