# extendify/3.0.4/src/Launch/hooks/useSiteProfile.js

Extendify, version 3.0.4. 18 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.0.4/code/src/Launch/hooks/useSiteProfile.js
- Raw: https://pluginprobe.com/plugins/extendify/3.0.4/raw/src/Launch/hooks/useSiteProfile.js
- Modified: 2026-02-18T22:27:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.0.4/code/src/Launch/hooks/useSiteProfile.js#L10-L20`.

```javascript
import { getSiteProfile } from '@launch/api/DataApi';
import { useUserSelectionStore } from '@launch/state/user-selections';
import useSWRImmutable from 'swr/immutable';

export const useSiteProfile = () => {
	const { siteInformation, businessInformation } = useUserSelectionStore();
	const { data, error } = useSWRImmutable(
		{
			key: 'site-profile',
			title: siteInformation?.title,
			description: businessInformation?.description,
		},
		getSiteProfile,
	);

	return { siteProfile: data, error, loading: !data && !error };
};

```
