Added blog writer implementation - WIP

This commit is contained in:
ajaysi
2025-09-12 10:26:08 +05:30
parent 1b65a9487b
commit c0a366269d
38 changed files with 4948 additions and 98 deletions

View File

@@ -0,0 +1,25 @@
import React from 'react';
import { BlogSEOAnalyzeResponse } from '../../services/blogWriterApi';
interface Props {
analysis?: BlogSEOAnalyzeResponse | null;
}
const SEOMiniPanel: React.FC<Props> = ({ analysis }) => {
if (!analysis) return null;
return (
<div style={{ border: '1px solid #eee', padding: 8, marginTop: 8 }}>
<div style={{ fontWeight: 600 }}>SEO Mini Panel</div>
<div>Score: {analysis.seo_score}</div>
{!!analysis.recommendations?.length && (
<ul>
{analysis.recommendations.slice(0, 3).map((r, i) => (<li key={i}>{r}</li>))}
</ul>
)}
</div>
);
};
export default SEOMiniPanel;