import React from ‘react’; import { SWOTPoint } from ‘../types’; import { Quote } from ‘lucide-react’; interface AnalysisViewProps { points: SWOTPoint[]; } const AnalysisView: React.FC = ({ points }) => { const categorized = { STRENGTH: points.filter(p => p.category === ‘STRENGTH’), WEAKNESS: points.filter(p => p.category === ‘WEAKNESS’), OPPORTUNITY: points.filter(p => p.category === ‘OPPORTUNITY’), THREAT: points.filter(p => p.category === ‘THREAT’), }; return (

Raport Analizy SWOT

Wygenerowano: {new Date().toLocaleString(‘pl-PL’)}

{/* Strengths */}

Mocne Strony

{categorized.STRENGTH.length === 0 ?

Brak wpisów.

: categorized.STRENGTH.map(p => (
Siła: {p.x}/10 | Wpływ: {p.y}/10

{p.description}

)) }
{/* Weaknesses */}

Słabe Strony

{categorized.WEAKNESS.length === 0 ?

Brak wpisów.

: categorized.WEAKNESS.map(p => (
Nasilenie: {p.x}/10 | Ryzyko: {p.y}/10

{p.description}

)) }
{/* Opportunities */}

Szanse

{categorized.OPPORTUNITY.length === 0 ?

Brak wpisów.

: categorized.OPPORTUNITY.map(p => (
Potencjał: {p.x}/10 | Prawd.: {p.y}/10

{p.description}

)) }
{/* Threats */}

Zagrożenia

{categorized.THREAT.length === 0 ?

Brak wpisów.

: categorized.THREAT.map(p => (
Nasilenie: {p.x}/10 | Wpływ: {p.y}/10

{p.description}

)) }
); }; export default AnalysisView;