"use client"
import React from 'react';
import Sidebar from './page';
import type { NextPage } from 'next';
interface LayoutProps {
children: React.ReactNode;
}
export default function Layout({ children }: LayoutProps): NextPage<LayoutProps> {
return (
<div className="app-container">
<Sidebar />
<main className="main-content">{children}</main>
</div>
);
}
`this is my code for layout.tsx in nextjs(14.2) project when i build error will show.
can you fix the error`
New contributor
Ponraj Thuvarakan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.