import { FormGenerator } from '../FormGenerator/FormGenerator'; import { Popup } from '../Popup/Popup'; import { EditForm } from '../Popup/EditForm'; import { usePromptsLogic } from './promptsLogic'; import { PromptsTableProps } from './promptsTypes'; import { useLanguage } from '../../contexts/LanguageContext'; import styles from './PromptsTable.module.css'; function PromptsTable({ className = '' }: PromptsTableProps) { const { t } = useLanguage(); const { prompts, loading, error, columns, actions, handleDeleteSingle, handleDeleteMultiple, editModalOpen, editingPrompt, editPromptFields, handleSavePrompt, handleCancelEdit, refetch } = usePromptsLogic(); if (error) { return (
{t('prompts.error.loading', 'Error loading prompts:')} {error}