diff --git a/src/components/card-split/index.tsx b/src/components/card-split/index.tsx
new file mode 100644
index 0000000..a5c3831
--- /dev/null
+++ b/src/components/card-split/index.tsx
@@ -0,0 +1,31 @@
+import { Glass } from "@/components/glass"
+import { cn } from "@/lib/utils"
+import { CardSplitPrimaryContent } from "./primary-content"
+import { CardSplitSecondaryContent } from "./secondary-content"
+import type { CardSplitProps } from "./types"
+
+export function CardSplit({ textPrimary, textSecondary, textSecondarySmall, className }: CardSplitProps) {
+ const hasPrimaryContent = Boolean(textPrimary)
+ const hasSecondaryContent = Boolean(textSecondary || textSecondarySmall)
+
+ return (
+
+ {text} +
+ ) +} diff --git a/src/components/card-split/secondary-content.tsx b/src/components/card-split/secondary-content.tsx new file mode 100644 index 0000000..f1b44a4 --- /dev/null +++ b/src/components/card-split/secondary-content.tsx @@ -0,0 +1,20 @@ +import { cn } from "@/lib/utils" + +type CardSplitSecondaryContentProps = { + textSecondary?: string + textSecondarySmall?: string + hasPrimaryContent: boolean +} + +export function CardSplitSecondaryContent({ + textSecondary, + textSecondarySmall, + hasPrimaryContent, +}: CardSplitSecondaryContentProps) { + return ( +{textSecondary}
} + {textSecondarySmall &&{textSecondarySmall}
} +