Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

589 B
Raw Blame
"use client";

import { getRuntimeWorkshopApiUrl } from "@/lib/runtime-config";

import { WorkshopAdmin } from "./WorkshopAdmin";
import { WorkshopApp } from "./WorkshopApp";

interface WorkshopRouteProps {
  configuredWorkshopUrl: string;
}

export function WorkshopRoute({ configuredWorkshopUrl }: WorkshopRouteProps) {
  return <WorkshopApp workshopUrl={getRuntimeWorkshopApiUrl(configuredWorkshopUrl)} />;
}

export function WorkshopAdminRoute({ configuredWorkshopUrl }: WorkshopRouteProps) {
  return <WorkshopAdmin workshopUrl={getRuntimeWorkshopApiUrl(configuredWorkshopUrl)} />;
}