import { createCanvas } from "@/app/actions/doers"; import { getCanvas } from "@/app/actions/fetchers"; import Link from "next/link"; import React from "react"; import ImageComponent from "./image"; import Menu from "@/app/(dash)/menu"; import Header from "@/app/(dash)/header/header"; import BackgroundPlus from "@/app/(landing)/GridPatterns/PlusGrid"; async function page() { const canvas = await getCanvas(); return (
Your{" "} ThinkPads
{!canvas.success || canvas.error ? (
Hmmm... Something went wrong. :/
) : ( canvas.data && (canvas.data.length ? ( canvas.data.map((v) => ( )) ) : ( )) )}

Thinkpads is under beta and only one thinkpad is allowed per user.

); } function BlurHeaderMenu() { return ( <>
); } type TcanvasInfo = { title: string; description: string; id: string; }; function CreateCanvas() { return (
); } function Canvas(props: TcanvasInfo) { const { title, description, id } = props; return (

{title === "Untitled" ? "Unleash your creativity!" : title}

{description === "Untitled" ? "This description will fill itself as you draw on the canvas" : description}

); } export default page;