"use client";
import type { CSSProperties } from "react";
import "./loader.css";
export type BrandLoaderProps = { loading:boolean; fullscreen?:boolean; logoSrc:string; label?:string; className?:string };
/** A small spotlight sweeps across one statement and rests on its proof. Uses actual application readiness. */
export function BrandLoader({loading,fullscreen=true,logoSrc,label="Loading Brand with Ajay",className=""}:BrandLoaderProps){
 if(!loading)return null;
 const style={"--brand-loader-primary":"#7543D5","--brand-loader-secondary":"#CADC83","--brand-loader-ink":"#281638","--brand-loader-paper":"#F9F7FD","--brand-loader-mark-size":"70px","--brand-loader-mark-pos":"65.0px"} as CSSProperties;
 return <div className={["brand-loader",fullscreen?"brand-loader--fullscreen":"brand-loader--inline",className].join(" ")} style={style} role="status" aria-live="polite" aria-busy="true" data-brand={"Brand with Ajay"}>
 <span className="brand-loader__stage" aria-hidden="true"><span className="brand-loader__scene" dangerouslySetInnerHTML={{__html:"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"200\" height=\"200\" viewBox=\"0 0 1000 1000\" data-motion-profile=\"brandwithajay\" aria-hidden=\"true\"><defs><clipPath id=\"clear-brandwithajay\"><path clip-rule=\"evenodd\" d=\"M0 0H1000V1000H0Z M275 275V725H725V275Z\"/></clipPath></defs><g clip-path=\"url(#clear-brandwithajay)\"><g class=\"identity-grammar\"><rect x=\"80\" y=\"180\" width=\"50\" height=\"640\" stroke=\"#281638\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"signature-margin\" class=\"identity-stroke\" style=\"--phase:0.000s\"/><path d=\"M170 850V150L500 350V650L170 850\" stroke=\"#7543D5\" fill=\"none\" stroke-width=\"18\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"editorial-spotlight\" class=\"identity-stroke\" style=\"--phase:0.095s\"/><path d=\"M500 350L900 170M500 500H930M500 650L900 830\" stroke=\"#CADC83\" fill=\"none\" stroke-width=\"14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" pathLength=\"1\" data-motif-key=\"point-of-view-rays\" class=\"identity-stroke\" style=\"--phase:0.190s\"/></g></g></svg>"}}/><img className="brand-loader__mark" src={logoSrc} width={70} height={70} alt=""/></span><span className="brand-loader__label">{label}</span></div>;
}
export default BrandLoader;
