{"version":3,"file":"index.mjs","names":["props: ContentProps","p: ContentProps"],"sources":["../../../src/components/content/index.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\n\nimport { useScrollCore } from \"#/contexts/scrollcore\";\nimport { getComponentProps } from \"#/functions/props\";\n\n/** Props for the `Content` component. */\ntype ContentProps = React.ComponentProps<\"div\">;\n\n/** Content component. */\nconst Content = (props: ContentProps): React.JSX.Element => {\n    const {\n        options: { plugins },\n        contentRef,\n    } = useScrollCore();\n\n    const p: ContentProps = getComponentProps({\n        name: \"content\",\n        props,\n        plugins,\n    });\n\n    React.useImperativeHandle(p.ref, (): HTMLDivElement => {\n        return contentRef.current as HTMLDivElement;\n    }, [\n        contentRef,\n    ]);\n\n    return (\n        <div\n            {...p}\n            ref={contentRef}\n        >\n            {p.children}\n        </div>\n    );\n};\n\nexport type { ContentProps };\nexport { Content };\n"],"mappings":";;;;;;;;;AAWA,MAAM,UAAU,CAACA,UAA2C;CACxD,MAAM,EACF,SAAS,EAAE,SAAS,EACpB,YACH,GAAG,eAAe;CAEnB,MAAMC,IAAkB,kBAAkB;EACtC,MAAM;EACN;EACA;CACH,EAAC;AAEF,OAAM,oBAAoB,EAAE,KAAK,MAAsB;AACnD,SAAO,WAAW;CACrB,GAAE,CACC,UACH,EAAC;AAEF,wBACI,IAAC;EACG,GAAI;EACJ,KAAK;YAEJ,EAAE;GACD;AAEb"}