17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
import React from 'react'
|
|
import { ButtonProps } from '@/app/types/index'
|
|
|
|
const Button = ({ onClick, className, text, type }: ButtonProps) => {
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
className={`text-base font-medium rounded-2xl cursor-pointer ${className}`}
|
|
type={type}
|
|
>
|
|
<span>{text}</span>
|
|
</button>
|
|
)
|
|
}
|
|
|
|
export default Button
|