import React from 'react'; /* import NextLink from 'next/link'; */ import { socials } from '@tutorbook/intl/msgs'; import { useIntl, IntlShape, defineMessages, MessageDescriptor, } from 'react-intl'; /* import config from '@tutorbook/intl/config.json'; */ import { Link } from '@tutorbook/intl'; import styles from './footer.module.scss'; /* *const locales: Record = defineMessages({ * en: { * id: 'footer.lang.english', * defaultMessage: 'English', * description: 'Label for the "English" language option.', * }, * fr: { * id: 'footer.lang.french', * defaultMessage: 'French', * description: 'Label for the "French" language option.', * }, * se: { * id: 'footer.lang.spanish', * defaultMessage: 'Spanish', * description: 'Label for the "Spanish" language option.', * }, * tr: { * id: 'footer.lang.turkish', * defaultMessage: 'Turkish', * description: 'Label for the "Turkish" language option.', * }, *}); */ /* * */ const labels: Record = defineMessages({ lang: { id: 'footer.lang.choose', defaultMessage: 'Choose your language', description: 'Header prompting the user to choose their language`', }, team: { id: 'footer.team.title', defaultMessage: 'Team', }, home: { id: 'footer.team.home', defaultMessage: 'Home', description: 'Label for the team homepage link.', }, directory: { id: 'footer.team.directory', defaultMessage: 'Directory', description: 'Label for the team directory link.', }, slack: { id: 'footer.team.slack', defaultMessage: 'Join the Slack', description: 'Label for the team Slack workspace link.', }, join: { id: 'footer.team.join', defaultMessage: 'Join the Team', description: 'Label for the "Join Our Team" link.', }, contact: { id: 'footer.team.contact', defaultMessage: 'Contact Us', }, socials: { id: 'footer.socials.title', defaultMessage: 'Socials', }, helpWithCOVID: { id: 'footer.socials.help-with-covid', defaultMessage: 'HelpWithCOVID', }, indieHackers: { id: 'footer.socials.indie-hackers', defaultMessage: 'IndieHackers', }, resources: { id: 'footer.resources.title', defaultMessage: 'Resources', }, help: { id: 'footer.resources.help-center', defaultMessage: 'Help Center', }, howItWorks: { id: 'footer.resources.how-it-works', defaultMessage: 'How It Works', }, openSource: { id: 'footer.resources.open-source', defaultMessage: 'Open Source', }, docs: { id: 'footer.resources.developer-docs', defaultMessage: 'Developer Docs', }, usefulLinks: { id: 'footer.useful-links.title', defaultMessage: 'Useful Links', }, signup: { id: 'footer.useful-links.signup', defaultMessage: 'Volunteer Signup', description: 'Label for the link to the tutor sign-up page.', }, search: { id: 'footer.useful-links.search', defaultMessage: 'Search Volunteers', description: 'Label for the link to the search view.', }, issue: { id: 'footer.useful-links.report-issue', defaultMessage: 'Report an Issue', description: 'Label for the link to create a new GitHub issue.', }, partners: { id: 'footer.partners.title', defaultMessage: 'Partners', }, schoolClosures: { id: 'footer.partners.school-closures', defaultMessage: 'School Closures', }, projectAccess: { id: 'footer.partners.project-access', defaultMessage: 'Project Access', }, learnpanion: { id: 'footer.partners.learnpanion', defaultMessage: 'Learnpanion', }, studyRoom: { id: 'footer.partners.study-room', defaultMessage: 'StudyRoom', }, interns4Good: { id: 'footer.partners.interns4good', defaultMessage: 'Interns4Good', }, }); interface LinkProps { href: string; label: string; } function NavLink({ href, label, className, }: LinkProps & { className: string }): JSX.Element { if (href.indexOf('http') < 0 && href.indexOf('mailto') < 0) return ( /* eslint-disable jsx-a11y/anchor-is-valid */ {label} /* eslint-enable jsx-a11y/anchor-is-valid */ ); return ( {label} ); } function PrimaryLink(props: LinkProps): JSX.Element { return (
  • ); } /* *function LangLink(props: LinkProps): JSX.Element { * return ( *
  • * * {props.label} * *
  • * ); *} */ interface LinkGroupProps { header: string; links: LinkProps[]; } function LinkGroup({ header, links }: LinkGroupProps): JSX.Element { return (
  • {header}

      {links.map((link) => ( ))}
  • ); } export default function Footer({ formWidth, }: { formWidth?: boolean; }): JSX.Element { const intl: IntlShape = useIntl(); return ( ); }