Copyright component extraction

This commit is contained in:
tmshv committed 2020-02-18 14:31:27 +03:00
1 parent c0dd5cf6ae
commit 5b19a6a359
4 files changed
+18 -11

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { useContext } from 'react'
import { ConfigContext } from 'src/context/ConfigContext'
export const Copyright: React.FC = () => {
const { yearStart, yearEnd } = useContext(ConfigContext)
return (
<span>©&nbsp;{yearStart}—{yearEnd} Шлиссельбургская детская художественная школа</span>
)
}