diff --git a/src/components/Footer.js b/src/components/Footer.js deleted file mode 100644 index 07a7e01a..00000000 --- a/src/components/Footer.js +++ /dev/null @@ -1,44 +0,0 @@ -const React = require('react') - -const mailto = email => `mailto:${email}` -const currentYear = () => (new Date()).getFullYear() - -const Footer = ({children, address, telephone, email, showAuthor}) => ( - -) - -const Author = () => ( - - Разработка и поддержка сайта — - - www.tmshv.ru - - -) - -const Copyright = ({yearStart, yearEnd}) => ( - © {yearStart}—{yearEnd} Шлиссельбургская детская художественная школа -) - -module.exports = Footer diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx new file mode 100644 index 00000000..a3e69d0a --- /dev/null +++ b/src/components/Footer/index.tsx @@ -0,0 +1,49 @@ +import * as React from 'react' + +const mailto = email => `mailto:${email}` +const currentYear = () => (new Date()).getFullYear() + +export interface IFooterProps { + address: string + telephone: string + email: string + showAuthor: boolean +} + +export const Footer: React.FC = props => ( + +) + +const Author = () => ( + + Разработка и поддержка сайта — + + www.tmshv.ru + + +) + +const Copyright = ({ yearStart, yearEnd }) => ( + © {yearStart}—{yearEnd} Шлиссельбургская детская художественная школа +)