"use client"; import React from "react"; import { BreadCrumbs } from "../ui/bread-crumbs"; import { usePathname } from "next/navigation"; import { useAppSelector } from "@/redux/hooks"; import { Title } from "../ui/title"; interface Props { title: string; second?: string; third?: string; path?: string; path2?: string; cursor?: boolean; children: React.ReactNode; } export const LayoutWithSidebar = ({ title, second, path, path2, third, children, cursor = false, }: Props) => { const pathname = usePathname(); const lang = useAppSelector( (state) => state.headerSlice.activeLang.localization ); return (
</div> {children} </div> ); };