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
import { type ClassValue, clsx } from 'clsx'; | |
import { twMerge } from 'tailwind-merge'; | |
// Tailwind CSS classnames utility | |
export function cn(...inputs: ClassValue[]) { | |
return twMerge(clsx(inputs)); | |
} |
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
import React from 'react'; | |
// .env | |
declare namespace NodeJS { | |
interface ProcessEnv { | |
NODE_ENV: 'development' | 'production' | 'test'; | |
} | |
} | |
// Global type declarations for React components |
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
import { DEFAULT_DEBOUNCE_DELAY } from '@/config/const'; | |
/** | |
* Debounce function | |
* @param fn - function to debounce | |
* @param delay - delay in milliseconds | |
* @returns debounced function | |
*/ | |
export const debounce = <T extends AnyFn>( | |
fn: T, |