XeNote/components/MDContainer.js
Triston Armstrong fd51f273f4 Change a lot of things (see description)
- removes tailwind (was cool but dont need it)
- reworks a lot of the html
- utilize a no css... library? css file? idk
- add a few details
- rework the navigation on the built notes pages
- write a bunch of tailwind like css classes
- ... maybe some more, too lazy
2024-01-06 21:04:57 -06:00

24 lines
539 B
JavaScript

import React, { useState } from 'react';
import MDContent from "./MDContent";
import { v4 as uuidv4 } from 'uuid';
function MDContainer({ post, fileNames }) {
const [posts, setPosts] = useState([post]);
function handleClick(content) {
setPosts(prevPosts => {
return [...prevPosts, content]
})
}
return (
<div className="">
{posts.map(p => (
<MDContent key={uuidv4()} content={p} handleOpenNewContent={handleClick} fileNames={fileNames} />
))}
</div>
);
}
export default MDContainer;