File size: 20,609 Bytes
2de53b0
 
 
 
 
 
 
fd040e9
 
 
 
2de53b0
 
 
 
 
eb88f13
 
 
 
2de53b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd040e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2de53b0
fd040e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ae7a09b
 
 
 
 
 
 
 
 
 
 
 
 
 
fd040e9
2de53b0
fd040e9
eb88f13
fd040e9
eb88f13
fd040e9
 
ae7a09b
eb88f13
fd040e9
 
2de53b0
eb88f13
fd040e9
 
eb88f13
fd040e9
 
ae7a09b
fd040e9
 
eb88f13
 
 
 
 
 
 
 
 
 
 
 
 
ae7a09b
eb88f13
 
 
 
 
 
 
 
 
 
 
 
 
 
ae7a09b
eb88f13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd040e9
 
 
eb88f13
ae7a09b
eb88f13
fd040e9
 
 
 
 
 
 
 
 
 
 
 
 
 
2de53b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f43772
2de53b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f43772
2de53b0
 
 
 
 
 
 
1f43772
 
 
 
 
 
 
 
 
 
 
 
 
2de53b0
 
fd040e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2de53b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd040e9
2de53b0
 
fd040e9
2de53b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f43772
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
'use client'

import React, { useState, useEffect, useRef } from 'react'
import {
  X, Loader2, CheckCircle2, AlertTriangle,
  Download, Sparkles, FileText, RefreshCw
} from 'lucide-react'
import {
  Document, Packer, Paragraph, TextRun, HeadingLevel,
  AlignmentType, BorderStyle, ShadingType
} from 'docx'

// ── Types ─────────────────────────────────────────────────────────────────────

export interface BatchItem {
  id: string
  title: string         // titre de l'article source
  keyword: string       // titres[0] du brief ou title
  url?: string          // URL de l'article d'origine
  source_name?: string  // nom de la source / publication
  brief_data: {
    angle?: string
    importance?: string
    fenetre?: string
    mots_cles?: string[]
    titres?: string[]
    format?: string
  } | null
}

interface GuideResult extends BatchItem {
  step: 'pending' | 'briefing' | 'guiding' | 'done' | 'error'
  brief_data_resolved?: BatchItem['brief_data']
  guide_plan?: string
  errorMsg?: string
}

interface Props {
  items: BatchItem[]
  clientId: string | null
  onClose: () => void
}

// ── Markdown β†’ HTML (lΓ©ger, pour l'export) ────────────────────────────────────

function mdToHtml(md: string): string {
  if (!md) return ''
  const lines = md.split('\n')
  const out: string[] = []
  let ulBuf: string[] = []
  let olBuf: string[] = []

  const flushUl = () => {
    if (ulBuf.length) { out.push(`<ul>${ulBuf.map(i => `<li>${i}</li>`).join('')}</ul>`); ulBuf = [] }
  }
  const flushOl = () => {
    if (olBuf.length) { out.push(`<ol>${olBuf.map(i => `<li>${i}</li>`).join('')}</ol>`); olBuf = [] }
  }
  const inline = (t: string) =>
    t.replace(/\*\*\*([^*]+)\*\*\*/g, '<strong><em>$1</em></strong>')
     .replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>')
     .replace(/\*([^*]+)\*/g, '<em>$1</em>')
     .replace(/__([^_]+)__/g, '<strong>$1</strong>')
     .replace(/_([^_]+)_/g, '<em>$1</em>')

  for (const raw of lines) {
    const line = raw.trim()
    if (/^#{1,6}\s/.test(line)) {
      flushUl(); flushOl()
      const lvl = Math.min(Math.max(line.match(/^(#{1,6})\s/)![1].length, 2), 4)
      out.push(`<h${lvl}>${inline(line.replace(/^#{1,6}\s+/, ''))}</h${lvl}>`)
    } else if (/^[-*+]\s+/.test(line)) {
      flushOl(); ulBuf.push(inline(line.replace(/^[-*+]\s+/, '')))
    } else if (/^\d+\.\s+/.test(line)) {
      flushUl(); olBuf.push(inline(line.replace(/^\d+\.\s+/, '')))
    } else if (line === '') {
      flushUl(); flushOl(); out.push('<p><br></p>')
    } else {
      flushUl(); flushOl(); out.push(`<p>${inline(line)}</p>`)
    }
  }
  flushUl(); flushOl()
  return out.join('\n').replace(/(<p><br><\/p>\s*){2,}/g, '<p><br></p>')
}

// ── Parseur markdown β†’ paragraphes docx ──────────────────────────────────────

function mdToDocxParagraphs(md: string): Paragraph[] {
  if (!md) return []
  const paragraphs: Paragraph[] = []

  // Parse les runs inline (gras, italique)
  function parseRuns(text: string): TextRun[] {
    const runs: TextRun[] = []
    // Regex pour **gras**, *italique*, ***gras+italique***
    const regex = /\*\*\*([^*]+)\*\*\*|\*\*([^*]+)\*\*|\*([^*]+)\*/g
    let last = 0, match: RegExpExecArray | null
    while ((match = regex.exec(text)) !== null) {
      if (match.index > last) runs.push(new TextRun({ text: text.slice(last, match.index) }))
      if (match[1]) runs.push(new TextRun({ text: match[1], bold: true, italics: true }))
      else if (match[2]) runs.push(new TextRun({ text: match[2], bold: true }))
      else if (match[3]) runs.push(new TextRun({ text: match[3], italics: true }))
      last = match.index + match[0].length
    }
    if (last < text.length) runs.push(new TextRun({ text: text.slice(last) }))
    return runs.length > 0 ? runs : [new TextRun({ text })]
  }

  const lines = md.split('\n')
  for (const raw of lines) {
    const line = raw.trim()
    if (!line) {
      paragraphs.push(new Paragraph({ text: '' }))
      continue
    }
    // Titres
    const hMatch = line.match(/^(#{1,4})\s+(.+)$/)
    if (hMatch) {
      const lvl = hMatch[1].length
      const headingMap: Record<number, HeadingLevel> = {
        1: HeadingLevel.HEADING_1,
        2: HeadingLevel.HEADING_2,
        3: HeadingLevel.HEADING_3,
        4: HeadingLevel.HEADING_4,
      }
      paragraphs.push(new Paragraph({
        text: hMatch[2],
        heading: headingMap[Math.min(lvl, 4)],
      }))
      continue
    }
    // Liste non ordonnΓ©e
    if (/^[-*+]\s+/.test(line)) {
      paragraphs.push(new Paragraph({
        children: parseRuns(line.replace(/^[-*+]\s+/, '')),
        bullet: { level: 0 },
      }))
      continue
    }
    // Liste ordonnΓ©e
    if (/^\d+\.\s+/.test(line)) {
      paragraphs.push(new Paragraph({
        children: parseRuns(line.replace(/^\d+\.\s+/, '')),
        numbering: { reference: 'default-numbering', level: 0 },
      }))
      continue
    }
    // Paragraphe normal
    paragraphs.push(new Paragraph({ children: parseRuns(line) }))
  }
  return paragraphs
}

// ── GΓ©nΓ©ration du fichier .docx ───────────────────────────────────────────────

// ── Helpers titres sans style Word natif (Γ©vite l'auto-capitalisation Title Case) ──
function h1Manual(text: string): Paragraph {
  return new Paragraph({
    children: [new TextRun({ text, bold: true, size: 36, color: '2E74B5' })],
    spacing: { before: 360, after: 160 },
  })
}
function h2Manual(text: string): Paragraph {
  return new Paragraph({
    children: [new TextRun({ text, bold: true, size: 26, color: '2E74B5' })],
    spacing: { before: 280, after: 100 },
  })
}

async function buildDocx(results: GuideResult[]): Promise<Blob> {
  const date = new Date().toLocaleDateString('fr-FR', { day: 'numeric', month: 'long', year: 'numeric' })
  const children: Paragraph[] = []
  const doneResults = results.filter(r => r.guide_plan)

  // ── Page de titre ──────────────────────────────────────────────
  children.push(
    new Paragraph({ text: 'Système Argos', heading: HeadingLevel.TITLE }),
    h1Manual('Guides de rΓ©daction'),
    new Paragraph({ text: `GΓ©nΓ©rΓ© le ${date} Β· ${doneResults.length} guide(s)`, style: 'aside' }),
    new Paragraph({ text: '' }),
  )

  for (const r of doneResults) {
    const bData = r.brief_data_resolved || r.brief_data

    // ── 1. Titre d'origine ─────────────────────────────────────
    children.push(
      new Paragraph({ text: '' }),
      h1Manual(r.title),
    )

    // ── 2. Source ──────────────────────────────────────────────
    if (r.source_name || r.url) {
      const sourceRuns: TextRun[] = [new TextRun({ text: 'Source : ', bold: true })]
      if (r.source_name) sourceRuns.push(new TextRun({ text: r.source_name }))
      if (r.source_name && r.url) sourceRuns.push(new TextRun({ text: ' β€” ' }))
      if (r.url) sourceRuns.push(new TextRun({ text: r.url, style: 'Hyperlink' }))
      children.push(new Paragraph({ children: sourceRuns }))
    }

    children.push(new Paragraph({ text: '' }))

    // ── 3. Suggestions de titres alternatifs ───────────────────
    if (Array.isArray(bData?.titres) && bData.titres.length > 0) {
      children.push(h2Manual('Titres alternatifs suggΓ©rΓ©s'))
      bData.titres.forEach((titre, i) => {
        children.push(new Paragraph({
          children: [
            new TextRun({ text: `#${i + 1}  `, bold: true, color: '7C3AED' }),
            new TextRun({ text: titre, bold: true }),
          ],
          indent: { left: 360 },
        }))
      })
      children.push(new Paragraph({ text: '' }))
    }

    // ── 4. Brief stratΓ©gique ───────────────────────────────────
    if (bData && (bData.angle || bData.importance || bData.fenetre || bData.mots_cles?.length || bData.format)) {
      children.push(h2Manual('Brief stratΓ©gique'))

      const briefFields: Array<[string, string | undefined]> = [
        ['Angle',    bData.angle],
        ['Enjeu',    bData.importance],
        ['FenΓͺtre',  bData.fenetre],
        ['Format',   bData.format],
      ]
      for (const [label, value] of briefFields) {
        if (!value) continue
        children.push(new Paragraph({
          children: [
            new TextRun({ text: `${label} : `, bold: true }),
            new TextRun({ text: value }),
          ]
        }))
      }
      if (Array.isArray(bData.mots_cles) && bData.mots_cles.length) {
        children.push(new Paragraph({
          children: [
            new TextRun({ text: 'Mots-clΓ©s : ', bold: true }),
            new TextRun({ text: bData.mots_cles.join(', '), italics: true }),
          ]
        }))
      }
      children.push(new Paragraph({ text: '' }))
    }

    // ── 5. Plan de RΓ©daction ───────────────────────────────────
    children.push(h2Manual('Plan de rΓ©daction'))
    children.push(...mdToDocxParagraphs(r.guide_plan!))
    children.push(new Paragraph({ text: '' }))
  }

  const doc = new Document({
    numbering: {
      config: [{
        reference: 'default-numbering',
        levels: [{ level: 0, format: 'decimal', text: '%1.', alignment: AlignmentType.LEFT }],
      }],
    },
    sections: [{ properties: {}, children }],
  })

  return await Packer.toBlob(doc)
}

// ── Composant principal ───────────────────────────────────────────────────────

export default function BatchGuideModal({ items, clientId, onClose }: Props) {
  const [results, setResults] = useState<GuideResult[]>(
    items.map(item => ({ ...item, step: 'pending' }))
  )
  const [isRunning, setIsRunning] = useState(false)
  const [isDone, setIsDone] = useState(false)
  const hasStarted = useRef(false)

  const doneCount  = results.filter(r => r.step === 'done').length
  const errorCount = results.filter(r => r.step === 'error').length
  const totalCount = results.length

  // ── Lance la gΓ©nΓ©ration au montage ─────────────────────────────
  useEffect(() => {
    if (hasStarted.current) return
    hasStarted.current = true
    runBatch()
  }, [])

  const updateResult = (id: string, patch: Partial<GuideResult>) =>
    setResults(prev => prev.map(r => r.id === id ? { ...r, ...patch } : r))

  async function runBatch() {
    setIsRunning(true)
    const successTitles: string[] = []

    for (const item of items) {
      // ── Γ‰tape 1 : gΓ©nΓ©rer le brief si absent ─────────────────
      let briefData = item.brief_data
      if (!briefData) {
        updateResult(item.id, { step: 'briefing' })
        try {
          const res = await fetch('/api/brief-discover', {
            method: 'POST',
            headers: { 'Content-Type': 'application/json' },
            body: JSON.stringify({
              title: item.title,
              card_type: 'article',
            }),
          })
          const data = await res.json()
          if (res.ok && data.brief) briefData = data.brief
        } catch (_) { /* on continue sans brief */ }
      }

      // ── Γ‰tape 2 : gΓ©nΓ©rer le guide ────────────────────────────
      updateResult(item.id, { step: 'guiding', brief_data_resolved: briefData })
      try {
        const res = await fetch('/api/content/guide-from-brief', {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({
            keyword: item.keyword,
            brief_data: briefData,
            client_id: clientId,
          }),
        })
        const data = await res.json()
        if (!res.ok) throw new Error(data.error || 'Erreur API')
        updateResult(item.id, { step: 'done', guide_plan: data.guide_plan, brief_data_resolved: briefData ?? undefined })
        successTitles.push(item.title)
      } catch (err: any) {
        updateResult(item.id, { step: 'error', errorMsg: err.message })
      }
    }

    setIsRunning(false)
    setIsDone(true)

    // ── Enregistrement en base (non-bloquant) ─────────────────────
    if (successTitles.length > 0) {
      fetch('/api/batch-guides', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
          client_id: clientId || null,
          article_count: successTitles.length,
          article_titles: successTitles,
        }),
      }).catch(err => console.warn('[batch-guides save]', err))
    }
  }

  async function handleDownload() {
    try {
      const blob = await buildDocx(results)
      const url  = URL.createObjectURL(blob)
      const a    = document.createElement('a')
      a.href     = url
      a.download = `guides-redaction-argos-${new Date().toISOString().slice(0, 10)}.docx`
      document.body.appendChild(a)
      a.click()
      document.body.removeChild(a)
      URL.revokeObjectURL(url)
    } catch (err) {
      console.error('[docx export]', err)
      alert('Erreur lors de la gΓ©nΓ©ration du fichier.')
    }
  }

  // ── Rendu ─────────────────────────────────────────────────────
  const progressPct = totalCount > 0 ? Math.round((doneCount + errorCount) / totalCount * 100) : 0

  return (
    <>
      {/* Overlay */}
      <div className="fixed inset-0 bg-black/70 backdrop-blur-sm z-[200]" onClick={isDone ? onClose : undefined} />

      {/* Modal */}
      <div className="fixed inset-0 z-[201] flex items-center justify-center p-4">
        <div className="w-full max-w-xl bg-[#0e0e16] border border-white/10 rounded-3xl shadow-2xl overflow-hidden">

          {/* Header */}
          <div className="px-6 py-5 border-b border-white/5 flex items-center justify-between bg-gradient-to-r from-indigo-500/10 to-purple-500/10">
            <div className="flex items-center gap-3">
              <div className="w-9 h-9 rounded-xl bg-indigo-500/20 flex items-center justify-center">
                <Sparkles size={16} className="text-indigo-400" />
              </div>
              <div>
                <h2 className="text-sm font-black text-white tracking-tight">GΓ©nΓ©ration en batch</h2>
                <p className="text-[10px] text-white/40 uppercase tracking-widest font-bold">
                  {isRunning ? 'En cours…' : isDone ? 'TerminΓ©' : 'PrΓͺt'}
                </p>
              </div>
            </div>
            {isDone && (
              <button onClick={onClose} className="p-2 rounded-xl hover:bg-white/10 text-white/40 hover:text-white transition-all">
                <X size={16} />
              </button>
            )}
          </div>

          {/* Barre de progression globale */}
          <div className="px-6 pt-5 pb-2">
            <div className="flex items-center justify-between mb-2">
              <span className="text-xs text-white/60">
                {doneCount + errorCount} / {totalCount} traitΓ©s
              </span>
              <span className="text-xs font-black text-indigo-400">{progressPct}%</span>
            </div>
            <div className="w-full h-1.5 bg-white/5 rounded-full overflow-hidden">
              <div
                className="h-full bg-gradient-to-r from-indigo-500 to-purple-500 rounded-full transition-all duration-500"
                style={{ width: `${progressPct}%` }}
              />
            </div>
          </div>

          {/* Liste des items */}
          <div className="px-6 py-4 space-y-2 max-h-72 overflow-y-auto">
            {results.map(r => (
              <div
                key={r.id}
                className={`flex items-center gap-3 p-3 rounded-xl border transition-all ${
                  r.step === 'done'     ? 'bg-emerald-500/5 border-emerald-500/20' :
                  r.step === 'error'    ? 'bg-red-500/5 border-red-500/20' :
                  r.step === 'guiding' || r.step === 'briefing' ? 'bg-indigo-500/10 border-indigo-500/30' :
                  'bg-white/2 border-white/5'
                }`}
              >
                {/* IcΓ΄ne statut */}
                <div className="shrink-0">
                  {r.step === 'done'     && <CheckCircle2 size={16} className="text-emerald-400" />}
                  {r.step === 'error'    && <AlertTriangle size={16} className="text-red-400" />}
                  {(r.step === 'guiding' || r.step === 'briefing') && (
                    <Loader2 size={16} className="text-indigo-400 animate-spin" />
                  )}
                  {r.step === 'pending'  && <div className="w-4 h-4 rounded-full border-2 border-white/10" />}
                </div>

                {/* Titre + statut */}
                <div className="flex-1 min-w-0">
                  <p className="text-xs font-bold text-white truncate">{r.title}</p>
                  <p className={`text-[10px] mt-0.5 ${
                    r.step === 'done'    ? 'text-emerald-400' :
                    r.step === 'error'   ? 'text-red-400' :
                    r.step === 'guiding' ? 'text-indigo-400' :
                    r.step === 'briefing'? 'text-amber-400' :
                    'text-white/30'
                  }`}>
                    {r.step === 'pending'   && 'En attente…'}
                    {r.step === 'briefing'  && 'GΓ©nΓ©ration du brief…'}
                    {r.step === 'guiding'   && 'GΓ©nΓ©ration du guide…'}
                    {r.step === 'done'      && 'Guide prΓͺt βœ“'}
                    {r.step === 'error'     && (r.errorMsg || 'Erreur')}
                  </p>
                </div>
              </div>
            ))}
          </div>

          {/* Footer */}
          <div className="px-6 py-5 border-t border-white/5 bg-white/2">
            {isDone ? (
              <div className="space-y-3">
                {/* RΓ©sumΓ© */}
                <div className="flex items-center gap-4 text-[11px]">
                  <span className="flex items-center gap-1.5 text-emerald-400 font-bold">
                    <CheckCircle2 size={12} /> {doneCount} guide{doneCount > 1 ? 's' : ''} gΓ©nΓ©rΓ©s
                  </span>
                  {errorCount > 0 && (
                    <span className="flex items-center gap-1.5 text-red-400 font-bold">
                      <AlertTriangle size={12} /> {errorCount} erreur{errorCount > 1 ? 's' : ''}
                    </span>
                  )}
                </div>

                {/* Bouton tΓ©lΓ©chargement */}
                {doneCount > 0 && (
                  <>
                    <button
                      onClick={handleDownload}
                      className="w-full flex items-center justify-center gap-2 py-3 bg-gradient-to-r from-indigo-500 to-purple-600 text-white rounded-xl text-xs font-black uppercase tracking-widest hover:opacity-90 transition-all shadow-lg shadow-indigo-500/20"
                    >
                      <Download size={14} />
                      TΓ©lΓ©charger les guides (.docx)
                    </button>
                    <p className="text-[10px] text-white/30 text-center leading-relaxed">
                      Glissez le fichier dans <strong className="text-white/50">Google Drive</strong> β†’ clic droit β†’ <em>Ouvrir avec Google Docs</em>
                    </p>
                  </>
                )}
              </div>
            ) : (
              <div className="flex items-center gap-2 text-[11px] text-white/40">
                <Loader2 size={12} className="animate-spin text-indigo-400" />
                <span>GΓ©nΓ©ration en cours, ne fermez pas cette fenΓͺtre…</span>
              </div>
            )}
          </div>

        </div>
      </div>
    </>
  )
}