/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import guidance from '@datashaper/guidance' import { useMemo } from 'react' /** * Loads the pre-build guidance markdown content and filters it to only verbs. * @returns */ export function useGuidanceContent(): Record { return useMemo( () => Object.entries(guidance).reduce((acc, [key, value]: [string, string]) => { if (key.startsWith('verbs')) { acc[key.replace('verbs.', '')] = value } return acc }, {} as Record), [], ) }