Moved to https://api.fmhy.net
This file contains 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
import { useCallback, useEffect, useState } from "react"; | |
// Define custom types for SpeechRecognition and SpeechRecognitionEvent | |
interface ISpeechRecognitionEvent extends Event { | |
results: SpeechRecognitionResultList; | |
resultIndex: number; | |
} | |
interface ISpeechRecognition extends EventTarget { | |
lang: string; |
This file contains 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
import { useEffect, useState } from "react"; | |
import resolveConfig from "tailwindcss/resolveConfig"; | |
// Update the path to your Tailwind config file | |
import tailwindConfig from "tailwind.config"; | |
const useTailwindBreakpoint = ({ | |
onBreakpointChange, | |
}: { | |
// eslint-disable-next-line no-unused-vars |
This file contains 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
import { generatorHandler } from "@prisma/generator-helper"; | |
import fs from "node:fs/promises"; | |
import path from "node:path"; | |
const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`; | |
generatorHandler({ | |
onManifest() { | |
return { | |
defaultOutput: "./enums/index.ts", |
This file contains 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
import { ElementType, HTMLAttributes } from "react"; | |
import { useAutoAnimate } from "@formkit/auto-animate/react"; | |
interface Props extends HTMLAttributes<HTMLElement> { | |
as?: ElementType; | |
} | |
export const AutoAnimate: React.FC<Props> = ({ | |
as: Tag = "div", | |
children, |