// import StructuredData from '@/components/StructuredData';
import { BRANDING_NAME } from '@/const/branding';
// import { ldModule } from '@/server/ld';
import { metadataModule } from '@/server/metadata';
import { translation } from '@/server/translation';
// import { isMobileDevice } from '@/utils/responsive';
import KnowledgeList from './components/KnowledgeList';

export const generateMetadata = async () => {
  const { t } = await translation('metadata');
  return metadataModule.generate({
    description: t('knowledge.description', { appName: BRANDING_NAME }),
    title: t('knowledge.title', { appName: BRANDING_NAME }),
    url: '/knowledge',
  });
};

const Page = async () => {
  // const mobile = isMobileDevice();
  // const { t } = await translation('metadata');
  // const ld = ldModule.generate({
  //   description: t('knowledge.description', { appName: BRANDING_NAME }),
  //   title: t('knowledge.title', { appName: BRANDING_NAME }),
  //   url: '/knowledge',
  // });

  return (
    <>
      {/*<StructuredData ld={ld} />*/}
      <KnowledgeList/>
    </>
  );
};

Page.displayName = 'Knowledge';

export default Page;
