mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
23 lines
551 B
JavaScript
23 lines
551 B
JavaScript
import React from 'react';
|
|
|
|
export default function APIList({ title, sections }) {
|
|
return (
|
|
<div className="mt-4">
|
|
<div className="">{title}</div>
|
|
|
|
<ul>
|
|
{sections.map(name => {
|
|
let id = name.replace(/[ -]/g, '-').toLowerCase();
|
|
return (
|
|
<li className="list-none m-0 mt-1 pl-4 text-sm link-color-inherit text-gray-700">
|
|
<a className="no-underline" href={'#' + id}>
|
|
{name}
|
|
</a>
|
|
</li>
|
|
);
|
|
})}
|
|
</ul>
|
|
</div>
|
|
);
|
|
}
|