AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112
  1. import type { InertiaLinkProps } from '@inertiajs/react';
  2. import { clsx } from 'clsx';
  3. import type { ClassValue } from 'clsx';
  4. import { twMerge } from 'tailwind-merge';
  5. export function cn(...inputs: ClassValue[]) {
  6. return twMerge(clsx(inputs));
  7. }
  8. export function toUrl(url: NonNullable<InertiaLinkProps['href']>): string {
  9. return typeof url === 'string' ? url : url.url;
  10. }