"use client";

import { OpenSearchWrapper } from "@/app/_components/OpenSearchWrapper";

export function DefaultDashboard() {
  // Extract just the URL path from the full dashboard URL
  // The env var format is like: app/dashboards?security_tenant=global#/view/...
  const defaultUrl =
    process.env.NEXT_PUBLIC_OPENSEARCH_DEFAULT_DASHBOARD_URL ||
    "app/dashboards#/";

  return <OpenSearchWrapper url={defaultUrl} />;
}
