import React from 'react'; import { Animation } from '../../components/Animation'; import { Section } from '../../components/Section'; import { Slider } from '../../components/Slider'; import { Button, ButtonType } from '../../components/Button'; import { Project } from '../../components/Project'; import { PageSection } from '../../types'; import { useLocalDataSource } from './data'; import * as classes from './style.module.css'; export function ProjectsSection(props: PageSection): React.ReactElement { const response = useLocalDataSource(); const data = response.allProjectsJson.sections[0]; return (
{data.projects.map((project, key) => { return project.visible ? : null; })} {data.button !== undefined && data.button.visible !== false && (
); }