{"version":3,"sources":["../src/components/Skeleton/useSkeleton.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport {\n  useSkeletonBase_unstable,\n  useSkeletonContextValues as useSkeletonContextValues_unstable,\n} from '@fluentui/react-skeleton';\n\nimport type { SkeletonProps, SkeletonState, SkeletonContextValues } from './Skeleton.types';\n\n/**\n * Returns the state for a Skeleton component, given its props and ref.\n * The returned state can be modified with hooks before being passed to `renderSkeleton`.\n */\nexport const useSkeleton = (props: SkeletonProps, ref: React.Ref<HTMLDivElement>): SkeletonState => {\n  const state = useSkeletonBase_unstable(props, ref);\n\n  return state;\n};\n\n/**\n * Returns the context values for a Skeleton component.\n */\nexport const useSkeletonContextValues = useSkeletonContextValues_unstable as (\n  state: SkeletonState,\n) => SkeletonContextValues;\n"],"names":["useSkeleton","useSkeletonContextValues","props","ref","state","useSkeletonBase_unstable","useSkeletonContextValues_unstable"],"mappings":"AAAA;;;;;;;;;;;;IAcaA,WAAW;eAAXA;;IASAC,wBAAwB;eAAxBA;;;+BAjBN;AAQA,MAAMD,cAAc,CAACE,OAAsBC;IAChD,MAAMC,QAAQC,IAAAA,uCAAwB,EAACH,OAAOC;IAE9C,OAAOC;AACT;AAKO,MAAMH,2BAA2BK,uCAAiC"}