import { type PolicySection } from './types'; import { CodeBlock } from '@/components/ui/code-block'; type TFn = (key: string) => string; export function getHowToUseSections(t: TFn): PolicySection[] { return [ { value: 'quick-start', title: t('howToUse.section1.title'), content: (

{t('howToUse.section1.desc')}

), }, { value: 'auth-security', title: t('howToUse.section2.title'), content: (

{t('howToUse.section2.desc')}

{t('howToUse.section2.passwordAuth')}

{t('howToUse.section2.oidc')}

{t('howToUse.section2.oidcDesc')}

  1. {t('howToUse.section2.oidcStep1')}
  2. {t('howToUse.section2.oidcStep2')}
  3. {t('howToUse.section2.oidcStep3')}
), children: [ { value: '2-1-login', title: t('howToUse.section2.passwordAuth') }, { value: '2-2-oidc', title: t('howToUse.section2.oidc') }, ], }, { value: 'access-token', title: t('howToUse.section3.title'), content: (

{t('howToUse.section3.desc')}

{t('howToUse.section3.generation')}

{t('howToUse.section3.headerUsage')}

{t('howToUse.section3.headerUsageDesc')}

{t('howToUse.section3.bearerHeader')}

{t('howToUse.section3.customHeader')}

), children: [ { value: '3-1-generation', title: t('howToUse.section3.generation') }, { value: '3-2-usage', title: t('howToUse.section3.headerUsage') }, ], }, { value: 'config-system', title: t('howToUse.section4.title'), content: (

{t('howToUse.section4.desc')}

), }, { value: 'worker-scheduler', title: t('howToUse.section5.title'), content: (

{t('howToUse.section5.desc')}

), }, { value: 'tracing-metrics', title: t('howToUse.section6.title'), content: (

{t('howToUse.section6.desc')}

), }, ]; }