Skip to content

Commit

Permalink
Bad revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed May 19, 2024
1 parent acff56a commit 92a5fe8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/global-styles/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ export function useGlobalStyle(
return [ result, setStyle ];
}

export function useGlobalStyleLinks() {
const { merged: mergedConfig } = useContext( GlobalStylesContext );
return mergedConfig?._links;
}

/**
* React hook that overrides a global settings object with block and element specific settings.
*
Expand Down

0 comments on commit 92a5fe8

Please sign in to comment.