// @flow import * as React from "react"; import { Container, Grid, List } from "../../components"; export type Props = {| /** * An array of the 8 links displayed in the first footer bar */ +links?: Array, /** * The text block displayed next to the links */ +note?: string, /** * The content of the very bottom copyright notice space */ +copyright?: React.Node, /** * The content of the very bottom nav space */ +nav?: React.Node, |}; /** * The footer of your website */ const SiteFooter = ({ links, note, copyright, nav }: Props): React.Node => ( {(links || note) && (
{links && ( {links[0]} {links[1]} {links[2]} {links[3]} {links[4]} {links[5]} {links[6]} {links[7]} )} {note}
)} {(nav || copyright) && ( )}
); SiteFooter.displayName = "Site.Footer"; export default SiteFooter;