src/components/current-date.tsx'use client'import { useState, useEffect } from 'react'import { DateTime } from 'luxon'const TIMEZONE = 'America/Chicago'export function CurrentDate({ dayString }: { dayString: string }) {const [formattedDate, setFormattedDate] = useState<string | null>(null)useEffect(() => {// Function to calculate the correct occurrence of the specified dayconst calculateNextDayDate = (): string => {const daysOfWeek = ['monday','tuesday','wednesday','thursday','friday','saturday',
Showing the first 20 lines.
Get full code