import TimeTrackingFieldClient from "@/components/time-tracking/TimeTrackingFieldClient";
import { getBrandSettingsPublic } from "@/actions/brand-settings";

const BRAND_ID = "b1cb7a96-d82b-40b1-80b1-d6dd26c56e28";
const BRAND_NAME = "Indian River Direct";
const BRAND_ACCENT = "blue";

export const metadata = {
  title: "Worker Clock — Indian River Direct",
};

export default async function IRDTimeClockPage() {
  const settings = await getBrandSettingsPublic("indian-river-direct");
  const logoUrl = settings.success ? (settings.settings?.logo_url ?? null) : null;

  return (
    <TimeTrackingFieldClient
      brandId={BRAND_ID}
      brandName={BRAND_NAME}
      brandAccent={BRAND_ACCENT}
      logoUrl={logoUrl}
    />
  );
}
