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