"use client"; import React from "react"; import { Button } from "@/components/ui/button"; import { Plus } from "lucide-react"; interface ActionButtonsComponentProps { onCreateClick: () => void; translations: Record; lang: string; customButtons?: { label: string; onClick: () => void; variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"; icon?: React.ReactNode; }[]; } export const ActionButtonsComponent: React.FC = ({ onCreateClick, translations, lang, customButtons = [], }) => { const t = translations[lang] || {}; return (
{/* Render custom buttons */} {customButtons.map((button, index) => ( ))}
); };