multiTenancy option is enabled in the statamic module options.useStatamicSite when the multiTenancy option is enabled.useStatamicSite in your project.The useStatamicSite composable is used to get the current multi-tenancy site identifier based on the i18n locale properties or the multi-tenancy site identifier.
<script setup lang="ts">
const site = useStatamicSite();
</script>
function useStatamicSite(): ComputedRef<string | undefined>
The site identifier is retrieved from the site configuration of the current tenant.