analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
23 lines • 1.18 kB
TypeScript
import type { ColumnConfig } from '../../TableProvider/index';
import type { ActivityModelTableItem } from '../../types/activitiesHistory';
/**
* Callbacks interface for table action buttons
*/
export interface ExamTableCallbacks {
/** Callback when send exam button is clicked */
onSend: (row: ActivityModelTableItem) => void;
/** Callback when delete button is clicked */
onDelete: (row: ActivityModelTableItem) => void;
/** Callback when edit button is clicked */
onEdit: (row: ActivityModelTableItem) => void;
}
/**
* Factory function to create column configuration for drafts and models tables
* (used by both exam and activity pages).
* Returns columns with action buttons that use the provided callbacks
* @param callbacks - Object containing onSend, onDelete, and onEdit handlers
* @param sendLabel - Label for the send button (e.g. "Enviar prova" / "Enviar atividade")
* @returns Column configuration array for TableProvider
*/
export declare const createExamDraftsModelsTableColumns: (callbacks: ExamTableCallbacks, sendLabel?: string) => ColumnConfig<ActivityModelTableItem>[];
//# sourceMappingURL=examDraftsModelsTableConfig.d.ts.map