update ui and remove mock data

This commit is contained in:
2026-09-09 19:50:52 +05:30
parent 5ce580dced
commit bfe4d3d2f2
172 changed files with 4280 additions and 8775 deletions

View File

@@ -0,0 +1,17 @@
'use client';
import {useResource} from '@/shared/hooks/useResource';
import {siteRepository} from '@/features/stores/repositories/siteRepository';
import type {Site} from '@/features/stores/types/site';
import type {Resource} from '@/shared/hooks/useResource';
/**
* The estate, from the platform.
*
* Unscoped on purpose — the site list is what the scope selector is FOR, so it
* cannot itself be filtered by the selection. That also means one fetch per
* session rather than one per store change.
*/
export function useSites(): Resource<Site[]> {
return useResource(siteRepository.list());
}