-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: rename clsxm utils * feat: add new type for page props
- Loading branch information
1 parent
438f65a
commit 0e62f7d
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type TPageProps<P = unknown, SP = Record<string, string | string[] | undefined>> = { | ||
params: P; | ||
searchParams: SP; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
import clsx, { type ClassArray } from 'clsx'; | ||
|
||
export default function clsxm(...classNames: ClassArray) { | ||
export default function cn(...classNames: ClassArray) { | ||
return twMerge(clsx(classNames)); | ||
} |