Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/design-system/lib/utils.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/design-system/lib/utils.ts |
| Original SHA-256 | 0021e0ba07d1eac9942abf359b864e5f878135a5821d5bb8ff9de2bd6ffbda15 |
| Git blob SHA | 01c1f215a22a8eb1361b6ed51c046eff8200060b |
| Reading-copy SHA-256 | 0021e0ba07d1eac9942abf359b864e5f878135a5821d5bb8ff9de2bd6ffbda15 |
Recovered source transcript
Download complete source text ↓16 lines · 0.5 KB
import { parseError } from '@thedaviddias/observability/error'
import type { ClassValue } from 'clsx'
import { clsx } from 'clsx'
import { toast } from 'sonner'
import { twMerge } from 'tailwind-merge'
export const cn = (...inputs: ClassValue[]): string => twMerge(clsx(inputs))
export const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1)
export const handleError = (error: unknown): void => {
const message = parseError(error)
toast.error(message)
}