[es] Component Pattern
[es] ```tsx
// Client component example
"use client";
import { useTranslations } from "next-intl";
import { Button } from "@/components/ui/button";
interface MyComponentProps {
title: string;
onAction: () => void;
}
export function MyComponent({ title, onAction }: MyComponentProps) {
const t = useTranslations("namespace");
return (
{title}
);
}
```
Fuente: https://github.com/f/awesome-chatgpt-prompts/blob/main/AGENTS.md
Component Pattern