import type { ReactNode } from "react"; import { usePlatformLanguage } from "../i18n/LanguageContext"; import Button, { type ButtonProps } from "./Button"; export type IconButtonProps = Omit & { label: string; icon: ReactNode; }; export default function IconButton({ label, icon, className = "", type = "button", ...buttonProps }: IconButtonProps) { const { translateText } = usePlatformLanguage(); const translatedLabel = translateText(label); return ( ); }