diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 44b17fa..6addfd5 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,7 @@ import '@/styles/main.css'; import * as React from 'react'; -import clsxm from '@/utils/clsxm'; +import cn from '@/utils/cn'; import type { Metadata } from 'next'; import type { TLayoutProps } from '@/types/layout.type'; @@ -21,7 +21,7 @@ export const metadata: Metadata = { export default function Layout({ children }: TLayoutProps) { return ( - + {children} ); diff --git a/src/types/page.type.ts b/src/types/page.type.ts new file mode 100644 index 0000000..67e3b54 --- /dev/null +++ b/src/types/page.type.ts @@ -0,0 +1,4 @@ +export type TPageProps

> = { + params: P; + searchParams: SP; +}; diff --git a/src/utils/clsxm.ts b/src/utils/cn.ts similarity index 68% rename from src/utils/clsxm.ts rename to src/utils/cn.ts index 0b455d2..1d795f6 100644 --- a/src/utils/clsxm.ts +++ b/src/utils/cn.ts @@ -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)); }