This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
import { type TRPCQueryOptions } from '@trpc/tanstack-react-query'; | |
import { unstable_noStore } from 'next/cache'; | |
import { Fragment, Suspense, type ReactNode } from 'react'; | |
import { ErrorBoundary } from 'react-error-boundary'; | |
import { HydrateClient, prefetch as prefetchTRPC } from '@/trpc/server'; | |
type AwaitProps<T> = | |
| { | |
promise: Promise<T>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this command to generate base config and vs code settings: | |
// pnpm dlx @antfu/eslint-config@latest | |
import antfu from "@antfu/eslint-config"; | |
export default antfu({ | |
type: "app", | |
typescript: true, | |
formatters: true, | |
stylistic: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import { CalendarDateTime, isToday as _isToday, } from "@internationalized/date"; | |
import { format } from "date-fns"; | |
import { CalendarIcon, ClockIcon } from "lucide-react"; | |
import { useRef, useState } from "react"; | |
import { DateValue, TimeValue, useDateSegment, useInteractOutside, useLocale, useTimeField } from "react-aria"; | |
import { DateFieldState, DatePickerStateOptions, DateSegment as IDateSegment, useDatePickerState, useTimeFieldState } from "react-stately"; | |
import { cn } from "../lib/utils"; | |
// imports from shadcn/ui | |
import { Button } from "./ui/button"; |