21 lines
376 B
TypeScript
21 lines
376 B
TypeScript
"use client";
|
|
|
|
import { ReactNode } from "react";
|
|
|
|
interface ButtonProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
appName: string;
|
|
}
|
|
|
|
export const Button = ({ children, className, appName }: ButtonProps) => {
|
|
return (
|
|
<button
|
|
className={className}
|
|
onClick={() => alert(`Hello from your ${appName} app!`)}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
};
|