diff --git a/src/components/CardComponent.tsx b/src/components/CardComponent.tsx new file mode 100644 index 000000000..2cdf707ed --- /dev/null +++ b/src/components/CardComponent.tsx @@ -0,0 +1,134 @@ +import React from 'react'; + +const CardComponent = ({ title, type }: { title: string; type: string }) => { + // Assuming your title is stored in a variable + + const [, secondPart] = title.split(' | '); + + return ( +
+ {secondPart} {/* Displaying the second part of the title */} +
+ {!secondPart && ( ++ {title} {/* Displaying the second part of the title */} +
+ )} +