import { WelcomeLogo } from '@/components/Branding';
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';

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

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

  return (
    <>
      {/*<StructuredData ld={ld} />*/}
      {/*<WelcomeLogo mobile={mobile} />*/}
      <div>算力</div>
    </>
  );
};

Page.displayName = 'Model';

export default Page;
