Extract a common TableOfContents component #91
| @ -1,3 +1,5 @@ | ||||
| /* Copyright (C) 2024 Manuel Bustillo*/ | ||||
| 
 | ||||
| export default function TableOfContents<Type>({ headers, caption, elements, rowRender }: { headers: string[], caption: string, elements: Type[], rowRender: (element: Type) => JSX.Element }) { | ||||
|     return ( | ||||
|         <div className="w-full relative overflow-x-auto shadow-md sm:rounded-lg"> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user