import { onMount } from "solid-js";
import { useNavigate, useParams } from "@solidjs/router";

export default function WorkspaceIndexRoute() {
  const navigate = useNavigate();
  const params = useParams();

  onMount(() => {
    navigate(`/app/${params.workspaceSlug}/today`, { replace: true });
  });

  return <div class="p-6 text-soft">Opening workspace…</div>;
}
