index.js

import React from 'react';

import './index.scss';

export default function Footer({ pagename }) {
  return <div className={`footer ${pagename}`}></div>;
}