import { GenericPageData } from '../../pageInterface';
import { FaDownload, FaTrash, FaSearch } from 'react-icons/fa';
import { IoIosDocument } from 'react-icons/io';

export const speechTranscriptsPageData: GenericPageData = {
    id: '8-1',
    path: 'speech/transcripts',
    name: 'Transkriptverwaltung',
    description: 'Manage and organize speech transcripts',
    
    // Parent page
    parentPath: 'speech',
    
    // Visual
    icon: IoIosDocument,
    title: 'Transkriptverwaltung',
    subtitle: 'Manage your speech transcripts and recordings',
    
    // Header buttons
    headerButtons: [
        {
            id: 'search',
            label: 'Search',
            variant: 'secondary',
            size: 'md',
            icon: FaSearch,
            onClick: () => {
                console.log('Opening search...');
                // Add search logic here
            }
        },
        {
            id: 'export-all',
            label: 'Export All',
            variant: 'primary',
            size: 'md',
            icon: FaDownload,
            onClick: () => {
                console.log('Exporting all transcripts...');
                // Add export logic here
            }
        },
        {
            id: 'delete-old',
            label: 'Delete Old',
            variant: 'danger',
            size: 'md',
            icon: FaTrash,
            onClick: () => {
                console.log('Deleting old transcripts...');
                // Add delete logic here
            }
        }
    ],
    
    // Content sections
    content: [
        {
            id: 'intro',
            type: 'heading',
            content: 'Transcript Management',
            level: 2
        },
        {
            id: 'description',
            type: 'paragraph',
            content: 'View, organize, and manage all your speech transcripts in one place. Search through your recordings and export them in various formats.'
        },
        {
            id: 'features',
            type: 'heading',
            content: 'Available Actions',
            level: 3
        },
        {
            id: 'features-list',
            type: 'list',
            content: 'You can:',
            items: [
                'Search through all your transcripts',
                'Filter by date, duration, or content',
                'Export individual or multiple transcripts',
                'Edit and correct transcriptions',
                'Add tags and notes to recordings',
                'Delete old or unwanted recordings'
            ]
        },
        {
            id: 'organization',
            type: 'heading',
            content: 'Organization Tips',
            level: 3
        },
        {
            id: 'organization-text',
            type: 'paragraph',
            content: 'Use tags to organize your transcripts by topic or project. You can also add custom notes to help you find specific recordings later.'
        }
    ],
    
    // Page behavior
    persistent: false,
    preload: false,
    moduleEnabled: true,
    
    // Sidebar - will be shown as subpage under Speech
    showInSidebar: false,
    
    // Lifecycle hooks
    onActivate: async () => {
        if (import.meta.env.DEV) console.log('Speech Transcripts activated');
    }
};
