import { addProjectAction, deleteProjectAction, editProjectAction } from "@/app/(app)/settings/actions" import { CrudTable } from "@/components/settings/crud" import { getCurrentUser } from "@/lib/auth" import { randomHexColor } from "@/lib/utils" import { getProjects } from "@/models/projects" import { Prisma } from "@/prisma/client" export default async function ProjectsSettingsPage() { const user = await getCurrentUser() const projects = await getProjects(user.id) const projectsWithActions = projects.map((project) => ({ ...project, isEditable: true, isDeletable: true, })) return (
Use projects to differentiate between the type of activities you do For example: Freelancing, YouTube channel, Blogging. Projects are just a convenient way to separate statistics.