Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
20 lines
465 B
TypeScript
20 lines
465 B
TypeScript
import { createContext, type ReactNode, useContext } from "react";
|
|
|
|
export type AvatarStyle = "robot" | "organic";
|
|
|
|
const AvatarStyleContext = createContext<AvatarStyle>("robot");
|
|
|
|
export function AvatarStyleProvider({
|
|
children,
|
|
value,
|
|
}: {
|
|
children: ReactNode;
|
|
value: AvatarStyle;
|
|
}) {
|
|
return <AvatarStyleContext value={value}>{children}</AvatarStyleContext>;
|
|
}
|
|
|
|
export function useAvatarStyle(): AvatarStyle {
|
|
return useContext(AvatarStyleContext);
|
|
}
|