Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/trueberryless-org/trueberryless-org. Landing page for trueberryless-org trueberryless-org.trueberryless.org
Something went wrong. Try again.
1234567891011import { toPascalCase } from "../../../shared/caseUtils";
export function getComponentDisplayName(componentPath: string): string { // Convert "wrappers/card" to "Card", "elements/button" to "Button", etc. const parts = componentPath.split("/"); const lastPart = parts[parts.length - 1];
// Convert kebab-case to PascalCase return toPascalCase(lastPart);}