import type { Meta } from '@/utils/meta' type DeepPartial = T extends object ? { [P in keyof T]?: DeepPartial } : T /** * Set values on window.metaAttributesCache, for use in Storybook stories */ export const useMeta = (meta: DeepPartial) => { for (const [key, value] of Object.entries(meta)) { window.metaAttributesCache.set(key, value) } }