import { GenericPageData } from '../../pageInterface';
import { FaRegFileAlt, FaMicrophone, FaCog, FaHistory } from 'react-icons/fa';

export const speechPageData: GenericPageData = {
    id: 'start-speech',
    path: 'start/speech',
    name: 'Speech',
    description: 'Speech recognition and transcription tools',
    
    // Parent page
    parentPath: 'start',
    showInSidebar: false,
    
    // Visual
    icon: FaRegFileAlt,
    title: 'Speech Recognition',
    subtitle: 'Convert speech to text with AI-powered transcription',
    
    // Header buttons
    headerButtons: [
        {
            id: 'start-recording',
            label: 'Start Recording',
            variant: 'primary',
            size: 'lg',
            icon: FaMicrophone,
            onClick: () => {
                console.log('Starting speech recording...');
                // Add recording logic here
            }
        },
        {
            id: 'settings',
            label: 'Settings',
            variant: 'secondary',
            size: 'md',
            icon: FaCog,
            onClick: () => {
                console.log('Opening speech settings...');
                // Navigate to settings
            }
        },
        {
            id: 'view-transcripts',
            label: 'View Transcripts',
            variant: 'secondary',
            size: 'md',
            icon: FaHistory,
            onClick: () => {
                console.log('Opening transcript history...');
                // Navigate to transcripts
            }
        }
    ],
    
    // Content sections
    content: [
        {
            id: 'intro',
            type: 'heading',
            content: 'Speech Recognition',
            level: 2
        },
        {
            id: 'description',
            type: 'paragraph',
            content: 'Use advanced AI-powered speech recognition to convert your spoken words into text. Perfect for dictation, meeting notes, and accessibility.'
        },
        {
            id: 'features',
            type: 'heading',
            content: 'Features',
            level: 3
        },
        {
            id: 'features-list',
            type: 'list',
            content: 'Available features:',
            items: [
                'Real-time speech-to-text conversion',
                'Multiple language support',
                'Custom vocabulary and commands',
                'Automatic punctuation and formatting',
                'Export to various formats (TXT, DOCX, PDF)',
                'Cloud and offline processing options'
            ]
        },
        {
            id: 'getting-started',
            type: 'heading',
            content: 'Getting Started',
            level: 3
        },
        {
            id: 'getting-started-text',
            type: 'paragraph',
            content: 'Click the "Start Recording" button above to begin. Make sure your microphone is connected and you have granted permission for the browser to access it.'
        },
        {
            id: 'privacy-note',
            type: 'heading',
            content: 'Privacy & Security',
            level: 3
        },
        {
            id: 'privacy-text',
            type: 'paragraph',
            content: 'Your speech data is processed securely and can be processed either locally on your device or in our secure cloud environment. You can choose your preferred processing method in the settings.'
        }
    ],
    
    // Subpage support
    hasSubpages: true,
    
    // Page behavior
    persistent: false,
    preload: true,
    moduleEnabled: true,
    hide: true, // Completely hide this page - it will not be rendered
    
    // Lifecycle hooks
    onActivate: async () => {
        if (import.meta.env.DEV) console.log('Speech activated');
    }
};
