"use client";

import { RequireRole } from "@/components/dashboard/require-role";

export default function PropertiesLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <RequireRole roles={["admin", "seller"]} permissions={["create-listing", "edit-listing"]} redirectTo="/dashboard">
      {children}
    </RequireRole>
  );
}
