feat: add card skins support
This commit is contained in:
17
apps/web/components/faces/index.ts
Normal file
17
apps/web/components/faces/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { LineFace } from "./line";
|
||||
import { CirclesFace } from "./circles";
|
||||
import { GlowFace } from "./glow";
|
||||
import { VipFace } from "./vip";
|
||||
import { RedeyeFace } from "./redeye";
|
||||
export type { CardFaceProps, CardFaceComponent } from "./types";
|
||||
import type { CardFaceComponent } from "./types";
|
||||
|
||||
export const CARD_FACE_REGISTRY = {
|
||||
line: LineFace,
|
||||
circles: CirclesFace,
|
||||
glow: GlowFace,
|
||||
vip: VipFace,
|
||||
redeye: RedeyeFace,
|
||||
} satisfies Record<string, CardFaceComponent>;
|
||||
|
||||
export type CardFaceName = keyof typeof CARD_FACE_REGISTRY;
|
||||
Reference in New Issue
Block a user