export const useCompanyProfile = () => { const { getDirectusLocale } = useLocalizations(); const locale = getDirectusLocale(); return useAsyncData(`company-profile-${locale}`, async () => { try { const data = await $fetch(`/api/cms/companyProfile`, { headers: { 'x-locale': locale }, }); return data; } catch (error) { logger.error('Error fetching company profile: ', error); throw error; } }); };