mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 23:59:01 +02:00
ffacd9a599
GitOrigin-RevId: 109a4357fc3b083ffbd3af5b8c98acf0f655f297
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)
|
|
}
|
|
}
|