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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import React, { useState } from 'react';
|
| 2 |
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
| 3 |
+
import { Button } from '@/components/ui/button';
|
| 4 |
+
import { Badge } from '@/components/ui/badge';
|
| 5 |
+
import {
|
| 6 |
+
MessageSquare,
|
| 7 |
+
GraduationCap,
|
| 8 |
+
PenTool,
|
| 9 |
+
HeadphonesIcon,
|
| 10 |
+
FileText,
|
| 11 |
+
CheckCircle,
|
| 12 |
+
MapPin,
|
| 13 |
+
GamepadIcon,
|
| 14 |
+
Heart
|
| 15 |
+
} from 'lucide-react';
|
| 16 |
+
|
| 17 |
+
interface ChatMode {
|
| 18 |
+
id: string;
|
| 19 |
+
title: string;
|
| 20 |
+
description: string;
|
| 21 |
+
icon: React.ReactNode;
|
| 22 |
+
color: string;
|
| 23 |
+
examples: string[];
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
const chatModes: ChatMode[] = [
|
| 27 |
+
{
|
| 28 |
+
id: 'general',
|
| 29 |
+
title: 'General Assistant',
|
| 30 |
+
description: 'Multi-purpose AI helper for various tasks',
|
| 31 |
+
icon: <MessageSquare className="h-5 w-5" />,
|
| 32 |
+
color: 'bg-blue-500',
|
| 33 |
+
examples: ['Answer questions', 'Explain concepts', 'Help with decisions']
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
id: 'study',
|
| 37 |
+
title: 'Study Helper',
|
| 38 |
+
description: 'Educational support and learning assistance',
|
| 39 |
+
icon: <GraduationCap className="h-5 w-5" />,
|
| 40 |
+
color: 'bg-green-500',
|
| 41 |
+
examples: ['Explain topics', 'Quiz preparation', 'Homework help']
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
id: 'writing',
|
| 45 |
+
title: 'Writing Assistant',
|
| 46 |
+
description: 'Help with writing, editing, and grammar',
|
| 47 |
+
icon: <PenTool className="h-5 w-5" />,
|
| 48 |
+
color: 'bg-purple-500',
|
| 49 |
+
examples: ['Improve text', 'Grammar check', 'Creative writing']
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
id: 'support',
|
| 53 |
+
title: 'Customer Support',
|
| 54 |
+
description: 'Automated customer service helper',
|
| 55 |
+
icon: <HeadphonesIcon className="h-5 w-5" />,
|
| 56 |
+
color: 'bg-yellow-500',
|
| 57 |
+
examples: ['Answer FAQs', 'Troubleshooting', 'Product info']
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
id: 'resume',
|
| 61 |
+
title: 'Resume Builder',
|
| 62 |
+
description: 'AI-powered resume creation and optimization',
|
| 63 |
+
icon: <FileText className="h-5 w-5" />,
|
| 64 |
+
color: 'bg-indigo-500',
|
| 65 |
+
examples: ['Resume writing', 'Format suggestions', 'Skills optimization']
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
id: 'grammar',
|
| 69 |
+
title: 'Grammar Corrector',
|
| 70 |
+
description: 'Advanced grammar and style checking',
|
| 71 |
+
icon: <CheckCircle className="h-5 w-5" />,
|
| 72 |
+
color: 'bg-red-500',
|
| 73 |
+
examples: ['Fix grammar', 'Style improvements', 'Clarity check']
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
id: 'travel',
|
| 77 |
+
title: 'Travel Planner',
|
| 78 |
+
description: 'Plan trips and get travel recommendations',
|
| 79 |
+
icon: <MapPin className="h-5 w-5" />,
|
| 80 |
+
color: 'bg-teal-500',
|
| 81 |
+
examples: ['Trip planning', 'Destination info', 'Travel tips']
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
id: 'game',
|
| 85 |
+
title: 'Game Character Generator',
|
| 86 |
+
description: 'Create dialogues and characters for games',
|
| 87 |
+
icon: <GamepadIcon className="h-5 w-5" />,
|
| 88 |
+
color: 'bg-orange-500',
|
| 89 |
+
examples: ['Character creation', 'Dialogue writing', 'Story ideas']
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
id: 'mental',
|
| 93 |
+
title: 'Mental Health Check-in',
|
| 94 |
+
description: 'Non-medical wellness and mood support',
|
| 95 |
+
icon: <Heart className="h-5 w-5" />,
|
| 96 |
+
color: 'bg-pink-500',
|
| 97 |
+
examples: ['Mood tracking', 'Wellness tips', 'Mindfulness']
|
| 98 |
+
}
|
| 99 |
+
];
|
| 100 |
+
|
| 101 |
+
interface ChatBotModesProps {
|
| 102 |
+
onModeSelect: (mode: ChatMode) => void;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
const ChatBotModes: React.FC<ChatBotModesProps> = ({ onModeSelect }) => {
|
| 106 |
+
const [selectedMode, setSelectedMode] = useState<string | null>(null);
|
| 107 |
+
|
| 108 |
+
const handleModeSelect = (mode: ChatMode) => {
|
| 109 |
+
setSelectedMode(mode.id);
|
| 110 |
+
onModeSelect(mode);
|
| 111 |
+
};
|
| 112 |
+
|
| 113 |
+
return (
|
| 114 |
+
<div className="space-y-6">
|
| 115 |
+
<div className="text-center">
|
| 116 |
+
<h2 className="text-3xl font-bold mb-2">Choose Your AI Assistant Mode</h2>
|
| 117 |
+
<p className="text-muted-foreground">Select the type of assistance you need</p>
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
| 121 |
+
{chatModes.map((mode) => (
|
| 122 |
+
<Card
|
| 123 |
+
key={mode.id}
|
| 124 |
+
className={`cursor-pointer transition-all hover:shadow-lg ${
|
| 125 |
+
selectedMode === mode.id ? 'ring-2 ring-primary' : ''
|
| 126 |
+
}`}
|
| 127 |
+
onClick={() => handleModeSelect(mode)}
|
| 128 |
+
>
|
| 129 |
+
<CardHeader className="pb-3">
|
| 130 |
+
<div className="flex items-center gap-3">
|
| 131 |
+
<div className={`p-2 rounded-lg ${mode.color} text-white`}>
|
| 132 |
+
{mode.icon}
|
| 133 |
+
</div>
|
| 134 |
+
<div>
|
| 135 |
+
<CardTitle className="text-lg">{mode.title}</CardTitle>
|
| 136 |
+
<Badge variant="secondary" className="text-xs">
|
| 137 |
+
V1Q Powered
|
| 138 |
+
</Badge>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
</CardHeader>
|
| 142 |
+
<CardContent>
|
| 143 |
+
<CardDescription className="mb-3">
|
| 144 |
+
{mode.description}
|
| 145 |
+
</CardDescription>
|
| 146 |
+
<div className="space-y-1">
|
| 147 |
+
<p className="text-sm font-medium text-muted-foreground">Examples:</p>
|
| 148 |
+
{mode.examples.map((example, index) => (
|
| 149 |
+
<div key={index} className="text-xs text-muted-foreground">
|
| 150 |
+
• {example}
|
| 151 |
+
</div>
|
| 152 |
+
))}
|
| 153 |
+
</div>
|
| 154 |
+
</CardContent>
|
| 155 |
+
</Card>
|
| 156 |
+
))}
|
| 157 |
+
</div>
|
| 158 |
+
|
| 159 |
+
<div className="text-center">
|
| 160 |
+
<Button
|
| 161 |
+
variant="outline"
|
| 162 |
+
onClick={() => onModeSelect(chatModes[0])}
|
| 163 |
+
className="mt-4"
|
| 164 |
+
>
|
| 165 |
+
Start with General Assistant
|
| 166 |
+
</Button>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
);
|
| 170 |
+
};
|
| 171 |
+
|
| 172 |
+
export default ChatBotModes;
|