import React, { useState, useEffect, useRef } from 'react' import { Button, Segment } from 'semantic-ui-react' import jstz from 'jstz' import useWindowDimensions from '../hooks/useWindowDimensions' const Calendar = ({ setMenuSelection }) => { const [showCode, setShowCode] = useState(false) const { containerWidth } = useWindowDimensions() const calenderDiv = useRef(null) const iFrameHTML = `` //This is a weird solution but I couldn't get it working just setting the iframe src from a variable useEffect(() => { setMenuSelection('calendar') document.title = 'Competitive Calendar - sendou.ink' calenderDiv.current.innerHTML = iFrameHTML }, [setMenuSelection, iFrameHTML]) return (

Competitive Splatoon Calendar

{showCode &&

💰 - Has prizes
🎭 - Unconventional ruleset
🔒 - Limited registration
🎲 - Solo registration available
👀 - No open registration

}
If an event is missing you can contact Kbot about it.
You can add the calendar to your personal Google Calendar by pressing the plus button above. If you are using other kind of calendar program you can try this link instead.
) } export default Calendar