14 lines
235 B
TypeScript
14 lines
235 B
TypeScript
import { ButtonProps } from "@/types/types";
|
|
|
|
|
|
export default function Button({
|
|
children,
|
|
onClick,
|
|
className,
|
|
}: ButtonProps) {
|
|
return (
|
|
<button onClick={onClick} className={className}>
|
|
{children}
|
|
</button>
|
|
);
|
|
} |