import { FunctionalComponent, h } from "preact"; import style from "./style.module.css"; import { route } from 'preact-router'; import { base58UUID } from '../../util/uuid'; import { useStoredProjectList } from "../../hooks/use-stored-project-list"; const Home: FunctionalComponent = () => { const [ projects, refreshProjects ] = useStoredProjectList(); const openNewProject = () => { const uuid = base58UUID(); route(`/p/${uuid}`); }; return (
); }; export default Home;