import { useEffect } from "react"; import { SecondaryButton } from "../../../components/button/SecondaryButton"; import { useAppDispatch } from "../../../redux/hooks"; import ArticleItem from "./ArticleItem"; import { setMenuActivePage } from "../../../redux/slices/store"; export interface Article { id: number; name: string; tags: string[]; } const Articles = () => { const dispatch = useAppDispatch(); const articles: Article[] = [ { "id": 1, "name": "Todo List App", "tags": ["Sertificated", "state", "list"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], }, { "id": 2, "name": "Search Filter Component", "tags": ["filter", "props", "hooks"], }, { "id": 3, "name": "User Card List", "tags": ["components", "props", "array"], }, { "id": 4, "name": "Theme Switcher", "tags": ["Sertificated", "theme", "hooks"], } ]; useEffect(() => { dispatch(setMenuActivePage("articles")) }, []); return (
Статьи
{ }} text="Создать статью" className="absolute right-0" />
{articles.map((v, i) => ( ))}
pages
); }; export default Articles;