mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +02:00
1 line
No EOL
3.1 KiB
JavaScript
1 line
No EOL
3.1 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["59902"],{32042:function(t,e,r){r.r(e),r.d(e,{metadata:()=>n,toc:()=>d,contentTitle:()=>c,default:()=>m,assets:()=>u,DocPropsList:()=>l,frontMatter:()=>a});var n=JSON.parse('{"id":"tests/custom-props/index","title":"Custom Props","description":"","source":"@site/_dogfooding/_docs tests/tests/custom-props/index.mdx","sourceDirName":"tests/custom-props","slug":"/tests/custom-props/","permalink":"/tests/docs/tests/custom-props/","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedBy":"S\xe9bastien Lorber","lastUpdatedAt":1729593657000,"frontMatter":{},"sidebar":"sidebar","previous":{"title":"Sample doc","permalink":"/tests/docs/tests/category-links/with-readme-doc/sample-doc"},"next":{"title":"Doc with Custom Props","permalink":"/tests/docs/tests/custom-props/doc-with-custom-props"}}'),s=r("24246"),o=r("80980"),i=r("34134");let a={},c="Custom Props",u={},l=({items:t})=>{let e={table:"table",td:"td",th:"th",tr:"tr",...(0,o.a)()};return(0,s.jsxs)(e.table,{children:[(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.th,{children:"Doc Page"}),(0,s.jsx)(e.th,{children:"Custom Props"})]}),t.map((t,r)=>(0,s.jsxs)(e.tr,{children:[(0,s.jsx)(e.td,{children:t.label}),(0,s.jsx)(e.td,{children:JSON.stringify(t.customProps)})]},r))]})},d=[];function p(t){let e={h1:"h1",header:"header",...(0,o.a)(),...t.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"custom-props",children:"Custom Props"})}),"\n","\n","\n",(0,s.jsx)(l,{items:(0,i.jA)().items})]})}function m(t={}){let{wrapper:e}={...(0,o.a)(),...t.components};return e?(0,s.jsx)(e,{...t,children:(0,s.jsx)(p,{...t})}):p(t)}m.displayName="MDXContent(_dogfooding/_docs tests/tests/custom-props/index.mdx)"},34134:function(t,e,r){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{jA:function(){return s}}),r(8156);function s(){for(var t,e,s=arguments.length,o=Array(s),i=0;i<s;i++)o[i]=arguments[i];return(e=r(90158)).useCurrentSidebarCategory.apply(e,function(t){if(Array.isArray(t))return n(t)}(t=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},80980:function(t,e,r){r.d(e,{Z:function(){return a},a:function(){return i}});var n=r(27378);let s={},o=n.createContext(s);function i(t){let e=n.useContext(o);return n.useMemo(function(){return"function"==typeof t?t(e):{...e,...t}},[e,t])}function a(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(s):t.components||s:i(t.components),n.createElement(o.Provider,{value:e},t.children)}}}]); |