-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPasted-import-React-from-react-import-Card-CardHeader-CardTitle-CardContent-from-components-ui-1734031882515.txt
102 lines (94 loc) · 3.65 KB
/
Pasted-import-React-from-react-import-Card-CardHeader-CardTitle-CardContent-from-components-ui-1734031882515.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import React from 'react';
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import {
MessageSquare,
Bell,
Target,
Clock,
Gift
} from 'lucide-react';
import { DebtCampaignTemplate, DEBT_CAMPAIGN_TEMPLATES } from '../services/debtCampaignStrategy';
interface CampaignCreatorProps {
selectedArchetype: string;
score: number;
}
const DebtCampaignCreator: React.FC<CampaignCreatorProps> = ({
selectedArchetype,
score
}) => {
const campaign = DEBT_CAMPAIGN_TEMPLATES[selectedArchetype];
return (
<Card className="w-full">
<CardHeader>
<div className="flex justify-between items-center">
<CardTitle>Debt Recovery Campaign</CardTitle>
<Badge variant="secondary">{`${score}% Match`}</Badge>
</div>
</CardHeader>
<CardContent>
<Tabs defaultValue="message">
<TabsList className="grid grid-cols-4 w-full">
<TabsTrigger value="message">Message</TabsTrigger>
<TabsTrigger value="channels">Channels</TabsTrigger>
<TabsTrigger value="incentives">Incentives</TabsTrigger>
<TabsTrigger value="communication">Style</TabsTrigger>
</TabsList>
<TabsContent value="message" className="space-y-4">
<div className="p-4 bg-muted rounded-lg">
<h3 className="font-medium mb-2">Primary Message</h3>
<p>{campaign.primaryMessage}</p>
</div>
<div className="space-y-2">
<h3 className="font-medium">Supporting Points</h3>
{campaign.supportingPoints.map((point, idx) => (
<div key={idx} className="flex items-center gap-2 p-2 border rounded">
<Target className="w-4 h-4" />
<span>{point}</span>
</div>
))}
</div>
</TabsContent>
<TabsContent value="channels" className="space-y-4">
{campaign.channels.map((channel, idx) => (
<Button key={idx} variant="outline" className="w-full justify-start">
<Bell className="w-4 h-4 mr-2" />
{channel}
</Button>
))}
<div className="p-4 bg-muted rounded-lg">
<h3 className="font-medium mb-2">Timing Strategy</h3>
<div className="flex items-center gap-2">
<Clock className="w-4 h-4" />
<span>{campaign.timing}</span>
</div>
</div>
</TabsContent>
<TabsContent value="incentives" className="space-y-4">
{campaign.incentives.map((incentive, idx) => (
<div key={idx} className="flex items-center gap-2 p-2 border rounded">
<Gift className="w-4 h-4" />
<span>{incentive}</span>
</div>
))}
</TabsContent>
<TabsContent value="communication" className="space-y-4">
{campaign.communicationStyle.map((style, idx) => (
<div key={idx} className="flex items-center gap-2 p-2 border rounded">
<MessageSquare className="w-4 h-4" />
<span>{style}</span>
</div>
))}
<div className="p-4 bg-muted rounded-lg">
<h3 className="font-medium mb-2">Call to Action</h3>
<p>{campaign.callToAction}</p>
</div>
</TabsContent>
</Tabs>
</CardContent>
</Card>
);
};
export default DebtCampaignCreator;