"use client"; import { PencilIcon, PlusCircleIcon } from "lucide-react"; import { useTranslations } from "next-intl"; import React from "react"; import { Button, DialogTrigger } from "../../shadcnui"; type CommonEditorTriggerProps = { isEdit: boolean; edit?: string; create?: string; testId?: string; title?: string }; export function CommonEditorTrigger({ isEdit, edit: _edit, create, testId, title }: CommonEditorTriggerProps) { const t = useTranslations(); return ( {title ? ( ) : isEdit ? ( ) : ( )} ); } export const CommonAddTrigger = React.forwardRef>( (props, ref) => ( ), ); CommonAddTrigger.displayName = "CommonAddTrigger";