'use client';

import { PERMISSIONS } from '@/constants/permissions';
import { PermissionRouteGuard } from '@/guards';

export default function SegmentLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <PermissionRouteGuard permission={PERMISSIONS.SEGMENT.READ}>
      {children}
    </PermissionRouteGuard>
  );
}
