mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add multiple way to show collections and links
This commit is contained in:
7
inertia/hooks/use_app_url.tsx
Normal file
7
inertia/hooks/use_app_url.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { PageProps } from '@adonisjs/inertia/types';
|
||||
import { usePage } from '@inertiajs/react';
|
||||
|
||||
export function useAppUrl() {
|
||||
const { props } = usePage<PageProps & { appUrl: string }>();
|
||||
return props.appUrl;
|
||||
}
|
||||
Reference in New Issue
Block a user