www/pages/playlists.tsx

22 lines
578 B
TypeScript
Raw Normal View History

2021-12-08 03:38:31 +00:00
import React, { ReactElement } from 'react';
import Layout from '../components/layout';
2022-04-28 01:55:18 +00:00
import { mapChild, toListItem } from '../components/lists';
2022-04-23 23:03:43 +00:00
import pl from '../public/playlists.yaml';
2021-12-08 03:38:31 +00:00
function Playlists() {
return (
<Layout name='Playlists'>
2022-04-28 01:55:18 +00:00
<h2>Music</h2>
{
pl.map((item: Record<string, any>) => {
const lItem = toListItem(item)
if (lItem)
return mapChild(lItem, 0)
})
}
2021-12-08 03:38:31 +00:00
</Layout>
);
}
2022-01-25 00:58:01 +00:00
export default Playlists;