/* eslint-disable jsx-a11y/click-events-have-key-events */ import dynamic from 'next/dynamic' import Link from 'next/link' import { ReactNode, useState } from 'react' import { DocsData } from '@types' import { NextSeo } from 'next-seo' const Container = dynamic(() => import('@components/Container')) const Divider = dynamic(() => import('@components/Divider')) const DeveloperLayout: React.FC = ({ children, enabled, docs, currentDoc, }: DeveloperLayout) => { const [navbarEnabled, setNavbarOpen] = useState(false) return (
  • {enabled === 'docs' && ( <>
  • setNavbarOpen(true)} onClick={() => setNavbarOpen(true)} >
  • )}
  • setNavbarOpen(false)} onClick={() => setNavbarOpen(false)} > 닫기
  • 나의 리스트
  • 문서
{enabled === 'docs' && ( <>
  • setNavbarOpen(false)} className='mb-2 cursor-pointer rounded-md px-4 py-1 lg:hidden' > 닫기
  • {docs?.map((el) => { if (el.list) return (
    {el.name}
      {el.list.map((e) => (
    • setNavbarOpen(false)} className={`cursor-pointer rounded-md px-4 py-2 ${ currentDoc === e.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white' }`} > {e.name}
    • ))}
    ) return (
  • setNavbarOpen(false)} className={`cursor-pointer rounded-md px-4 py-2 ${ currentDoc === el.name ? 'bg-discord-blurple text-white' : 'hover:text-gray-500 dark:hover:text-white' }`} > {el.name}
  • ) })}
)}
{children}
) } interface DeveloperLayout { children: ReactNode enabled: 'applications' | 'docs' docs?: DocsData[] currentDoc?: string } export default DeveloperLayout