updated lang change and FormDisplay Components

This commit is contained in:
2025-04-30 14:30:22 +03:00
parent f2cc7a69b5
commit 36e63960f8
87 changed files with 5517 additions and 312 deletions

View File

@@ -0,0 +1,31 @@
"use client";
import React from "react";
import { Button } from "@/components/ui/button";
import { CustomButton } from "./types";
import { cn } from "@/lib/utils";
interface CustomButtonComponentProps {
button: CustomButton;
isSelected: boolean;
onClick: () => void;
}
export const CustomButtonComponent: React.FC<CustomButtonComponentProps> = ({
button,
isSelected,
onClick,
}) => {
return (
<Button
onClick={onClick}
variant={button.variant || "default"}
className={cn(
"flex items-center",
isSelected && "ring-2 ring-primary ring-offset-2"
)}
>
{button.icon && <span className="mr-2">{button.icon}</span>}
{button.label}
</Button>
);
};