import { PencilIcon } from 'lucide-react' import Text from '@/components/ui/Text' import { useTranslation } from 'react-i18next' interface PropertyNameProps { name: string } export const PropertyName = ({ name }: PropertyNameProps) => { const { t } = useTranslation() const getPropertyNameTranslation = (propName: string) => { const translationKey = `graphPanel.propertiesView.node.propertyNames.${propName}` const translation = t(translationKey) return translation === translationKey ? propName : translation } return ( {getPropertyNameTranslation(name)} ) } interface EditIconProps { onClick: () => void } export const EditIcon = ({ onClick }: EditIconProps) => (
) interface PropertyValueProps { value: any onClick?: () => void } export const PropertyValue = ({ value, onClick }: PropertyValueProps) => (
)