mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
17 lines
538 B
JavaScript
17 lines
538 B
JavaScript
import React from 'react';
|
|
import TOC from './TOCInline';
|
|
import { sortedCombined as FAQComponents } from '../../docs/FAQ/index';
|
|
|
|
const TOCI = () => {
|
|
return (
|
|
<div>
|
|
{/* For each [key, value] pair in FAQComponents... */}
|
|
{Object.values(FAQComponents).map(({ toc, metadata }) => {
|
|
/* ...render a TOC component with toc and metadata as props */
|
|
return <TOC key={metadata.id} toc={toc} metadata={metadata} />
|
|
})}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TOCI;
|