Layout components :

return (
        <>
            <ToastContainer />
            <div className='font-IranBold'>
                <div className="border-b border-white dark:border-gray-500">
                    <ul className="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400">
                        <Tab TabsInfo={TabsInfo} SetTabState={SetTabState} TabState={TabState} />
                    </ul>
                </div>
                <div>
                    {children}
                </div>
            </div>
        </>
    )
  return (
<>
  <Layout TabsInfo={TabsInfo} SetTabState={SetTabState} TabState={TabState}>
    {
      TabState === 1 ? <Contentfa AdminAboutFa={AdminAboutFa} /> : <Contenten AdminAboutEn={AdminAboutEn} />
    }
  </Layout>
</>
)
When I run the project with npm start There is no problem and it runs. When I build, it only displays the names of the components :
When run with npm start (open to show)
But :