Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
trouvaille
/
wp-content
/
plugins
/
extendify
/
src
/
Agent
/
hooks
:
useThemeFontsVariations.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import useSWRImmutable from 'swr/immutable'; import fetcher from '@agent/workflows/theme/tools/get-theme-fonts-variations'; export const useThemeFontsVariations = () => { const { data, error, isLoading } = useSWRImmutable( { key: 'theme-fonts-variations', themeSlug: window.extAgentData.context.themeSlug, }, fetcher, ); return { variations: data?.variations, error, isLoading }; };