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

const BRAND_ID = "64294306-5f42-463d-a5e8-2ad6c81a96de";
const BRAND_NAME = "Tuxedo Corn";
const BRAND_ACCENT = "green";

export const metadata = {
  title: "Worker Clock — Tuxedo Corn",
};

export default async function TuxedoTimeClockPage() {
  const settings = await getBrandSettingsPublic("tuxedo");
  const logoUrl = settings.success ? (settings.settings?.logo_url ?? null) : null;

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