You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
450 B
19 lines
450 B
import { ReactNode } from 'react';
|
|
import { useSidebarToggle } from '@/hooks/useSidebarToggle';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
interface ContentProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export function Content({ children }: ContentProps) {
|
|
const { isCollapsed } = useSidebarToggle();
|
|
|
|
return (
|
|
<main className="flex-1 p-0 transition-all duration-300 ease-in-out">
|
|
<div className="w-full">
|
|
{children}
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|