feat: recreate dashboard page from previous version

This commit is contained in:
Sonny
2024-05-03 02:10:15 +02:00
committed by Sonny
parent 2cc490b611
commit 2cf8c5ae02
66 changed files with 2087 additions and 86 deletions

View File

@@ -0,0 +1,12 @@
import { usePage } from '@inertiajs/react';
const useSearchParam = (urlParam: string) => {
const { url } = usePage();
const urlParams = url.split('?');
urlParams.shift();
const urlSearchParam = new URLSearchParams(urlParams.join(''));
return urlSearchParam.get(urlParam);
};
export default useSearchParam;