Files
shadcn-ui/apps/v4/registry/styles.ts
shadcn 84bd724d97 feat: refactor registry (#8598)
* feat: refactor registry

* fix: remove components

* refactor: getActiveStyle

* fix: prettier in build-registry

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* fix

* Update apps/v4/scripts/build-registry.mts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix

* Update apps/v4/scripts/build-registry.mts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update apps/v4/components/block-viewer.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-29 15:07:56 +04:00

15 lines
357 B
TypeScript

export const STYLES = [
{ name: "new-york-v4" as const, title: "New York" },
] as const
export type Style = (typeof STYLES)[number]
export async function getActiveStyle() {
// In the future, this can read from cookies, session, etc.
return STYLES[0]
}
export function getStyle(name: string) {
return STYLES.find((style) => style.name === name)
}