import { Title, Paragraph, Heading } from "../components"; import DatePicker from 'react-datepicker' import { useState } from "react"; import "react-datepicker/dist/react-datepicker.css" import CopyToClipboard from "react-copy-to-clipboard"; import moment from "moment"; import Head from "next/head"; export default function BirthdaysPage() { const [date, setDate] = useState(new Date()); const [copied, setCopied] = useState("Copy!"); return ( <>
Birthdays You can generate your birthday command here for UtiliBots' birthday bot. I was born on the... The format is DD/MM. {setDate(date); setCopied("Copy!");} } dateFormat="dd/MM" /> Command to set your birthday: {`/set-birthday ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`} setCopied("Copied!")} text={`bd!setup ${Intl.DateTimeFormat().resolvedOptions().timeZone} ${moment(date).format("MM/DD")}`}>
); }