27f71a05f3
- Introduced a new page for API consultation (`Consulta_API`) with a form to send requests. - Added routing for the new page and a 404 error page. - Created a `MetodoSelect` component for selecting HTTP methods. - Implemented a `MiBoton` component for a customizable button. - Updated the `HomePage` layout to include a sidebar (`DoubleNavbar`) and main content area. - Enhanced the `Welcome` component with a new greeting and description. - Added a holographic shader background to the 404 error page. - Updated dependencies in `yarn.lock` for new components and features. - Styled the sidebar and main content for better user experience.
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
// 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;
|