feat: implemen top banner to display business hours and tel

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-04-15 16:27:47 +07:00
parent 746a0fcd03
commit 64a26ca164
6 changed files with 97 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
import clsx, { ClassValue } from 'clsx';
import { ReadonlyURLSearchParams } from 'next/navigation';
import { twMerge } from 'tailwind-merge';
export const createUrl = (pathname: string, params: URLSearchParams | ReadonlyURLSearchParams) => {
const paramsString = params.toString();
@@ -37,3 +39,7 @@ export const validateEnvironmentVariables = () => {
);
}
};
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}