mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-30 08:04:18 +00:00
* 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>
15 lines
357 B
TypeScript
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)
|
|
}
|