mirror of
https://github.com/joelhooks/joelclaw.git
synced 2026-09-19 01:24:04 +08:00
016dccc295
- Titles wrap fully instead of truncating - Relevance text shows complete (no line-clamp) - Date shown as relative time (2d ago) above title, not stealing width - Single type badge (repo/article/video) replaces full tag list - Source URL removed from index (shown on detail page) - Tighter card spacing for better scan density - Re-removed duplicate self-hosting discovery (also from Vault source)
18 lines
359 B
TypeScript
18 lines
359 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>
|
|
);
|
|
};
|