/** @jsx jsx */ import { graphql, useStaticQuery } from 'gatsby' import { FC } from 'react' import { Flex, Grid, Image, jsx, Link, LocalizedLink } from '@vtex/store-ui' import Container from './Container' import { FooterQueryQuery } from './__generated__/FooterQuery.graphql' interface Item { name: Maybe slug: Maybe } const MenuLink: FC = ({ slug, name }) => ( {name!.split(' ')[0]} ) const Footer: FC = () => { const { allDepartment } = useStaticQuery(graphql` query FooterQuery { allDepartment(sort: { order: ASC, fields: name }) { nodes { name slug } } } `) return ( {allDepartment.nodes.map((item: Item) => ( ))} Facebook Instagram Twitter Youtube Mastercard Visa Credit Card All stock and product photos are from photos.icons8.com ) } export default Footer