main
|
Last change
on this file since 7fbb91c was b62cefc, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added frontend and imporoved AI Suggestions service
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | import React from 'react'
|
|---|
| 2 | import { useNavigate } from 'react-router-dom'
|
|---|
| 3 | import { ArrowLeft, BookOpen } from 'lucide-react'
|
|---|
| 4 | import { useStoryStore } from '../../store/storyStore'
|
|---|
| 5 | import { ContentModerationTable } from '../../components/admin/ContentModerationTable'
|
|---|
| 6 |
|
|---|
| 7 | export const AdminContentPage: React.FC = () => {
|
|---|
| 8 | const navigate = useNavigate()
|
|---|
| 9 | const { stories } = useStoryStore()
|
|---|
| 10 |
|
|---|
| 11 | return (
|
|---|
| 12 | <div className="max-w-7xl mx-auto px-4 py-8">
|
|---|
| 13 | <div className="flex items-center gap-3 mb-8">
|
|---|
| 14 | <button onClick={() => navigate('/admin')} className="text-slate-400 hover:text-white transition-colors">
|
|---|
| 15 | <ArrowLeft size={20} />
|
|---|
| 16 | </button>
|
|---|
| 17 | <div>
|
|---|
| 18 | <h1 className="font-serif text-2xl font-bold text-white">Content Moderation</h1>
|
|---|
| 19 | <p className="text-slate-400 text-sm mt-0.5">{stories.length} total stories</p>
|
|---|
| 20 | </div>
|
|---|
| 21 | </div>
|
|---|
| 22 |
|
|---|
| 23 | <div className="bg-slate-900 border border-slate-700 rounded-2xl p-6">
|
|---|
| 24 | <div className="flex items-center gap-2 mb-6">
|
|---|
| 25 | <BookOpen size={18} className="text-violet-400" />
|
|---|
| 26 | <h2 className="text-white font-semibold">All Stories</h2>
|
|---|
| 27 | </div>
|
|---|
| 28 | <ContentModerationTable />
|
|---|
| 29 | </div>
|
|---|
| 30 | </div>
|
|---|
| 31 | )
|
|---|
| 32 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.