mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
|
/**
|
||
|
* Set values on window.metaAttributesCache, for use in Storybook stories
|
||
|
*/
|
||
|
export const useMeta = (meta: Record<string, unknown>) => {
|
||
|
for (const [key, value] of Object.entries(meta)) {
|
||
|
window.metaAttributesCache.set(key, value)
|
||
|
}
|
||
|
}
|