// @ts-types="solid-js"
import { Component } from "solid-js";
import { A, RouteSectionProps } from "@solidjs/router";

const Layout: Component<RouteSectionProps> = (props) => {
  return (
    <div class="max-w-xl w-full p-5">
      <A href="/">
        <h1 class="text-3xl font-bold mb-10">Washing Machine</h1>
      </A>
      {props.children}
    </div>
  );
};

export default Layout;
