{"version":3,"file":"CommonQuestionsRoute-C1cnoDUu.cjs","sources":["../lib/components/app/components/Answer.tsx","../lib/components/app/components/Question.tsx","../lib/components/app/routes/CommonQuestionsRoute.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\n\nexport function Answer({ children }: PropsWithChildren) {\n  return <dd className=\"mb-2 flex flex-col gap-2\">{children}</dd>;\n}\n","import type { PropsWithChildren } from \"react\";\n\nexport function Question({ children, id }: PropsWithChildren<{ id: string }>) {\n  return (\n    <dt className=\"pt-4\" id={id}>\n      <a\n        className=\"text-lg text-common-question-header! font-bold\"\n        href={`#${id}`}\n      >\n        {children}\n      </a>\n    </dt>\n  );\n}\n","import { Fragment } from \"react\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Header } from \"../../Header\";\nimport { Answer } from \"../components/Answer\";\nimport { Question } from \"../components/Question\";\n\nexport default function CommonQuestionsRoute() {\n  const { commonQuestions = [] } = useLibraryContext();\n\n  return (\n    <Box direction=\"column\" gap={4}>\n      <Header title=\"Common questions\" />\n      <dl>\n        {commonQuestions.map((current) => (\n          <Fragment key={current.id}>\n            <Question id={current.id}>{current.question}</Question>\n            <Answer>{current.answer}</Answer>\n          </Fragment>\n        ))}\n      </dl>\n    </Box>\n  );\n}\n"],"names":["Answer","children","jsx","Question","id","CommonQuestionsRoute","commonQuestions","useLibraryContext","jsxs","Box","Header","current","Fragment"],"mappings":"0KAEO,SAASA,EAAO,CAAE,SAAAC,GAA+B,CACtD,OAAOC,EAAAA,IAAC,KAAA,CAAG,UAAU,2BAA4B,SAAAD,CAAA,CAAS,CAC5D,CCFO,SAASE,EAAS,CAAE,SAAAF,EAAU,GAAAG,GAAyC,CAC5E,OACEF,EAAAA,IAAC,KAAA,CAAG,UAAU,OAAO,GAAAE,EACnB,SAAAF,EAAAA,IAAC,IAAA,CACC,UAAU,iDACV,KAAM,IAAIE,CAAE,GAEX,SAAAH,CAAA,CAAA,EAEL,CAEJ,CCNA,SAAwBI,GAAuB,CAC7C,KAAM,CAAE,gBAAAC,EAAkB,EAAC,EAAMC,oBAAA,EAEjC,OACEC,EAAAA,KAACC,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAP,EAAAA,IAACQ,EAAAA,OAAA,CAAO,MAAM,kBAAA,CAAmB,QAChC,KAAA,CACE,SAAAJ,EAAgB,IAAKK,UACnBC,WAAA,CACC,SAAA,CAAAV,MAACC,EAAA,CAAS,GAAIQ,EAAQ,GAAK,WAAQ,SAAS,EAC5CT,EAAAA,IAACF,EAAA,CAAQ,SAAAW,EAAQ,MAAA,CAAO,CAAA,GAFXA,EAAQ,EAGvB,CACD,CAAA,CACH,CAAA,EACF,CAEJ"}