import React from 'react'; import { GatsbyImage } from 'gatsby-plugin-image'; import { Animation } from '../../components/Animation'; import { Section } from '../../components/Section'; import { SocialProfiles } from '../../components/SocialProfiles'; import { useLocalDataSource } from './data'; import { PageSection } from '../../types'; import * as classes from './style.module.css'; export function ContactSection(props: PageSection): React.ReactElement { const response = useLocalDataSource(); const data = response.allContactJson.sections[0]; return (
{data.description &&

{data.description}

}
{data.image.src && ( )}
{data.name}
{data.email}
{data.socialProfiles && ( )}
); }