mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: chart color * fix * fix * fix: chart color * chore: changeset * chore: restore directory registry formatting * feat: add fontHeading * feat: rebuild registry * fix: v0 * refactor * fix * fix * fix * fix * fix * fix: refactor preset handling * fix * fix * fix
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
"use client"
|
|
|
|
import { getPresetCode } from "@/app/(create)/lib/preset-code"
|
|
import { useDesignSystemSearchParams } from "@/app/(create)/lib/search-params"
|
|
|
|
// Returns the canonical preset code derived from the current search params.
|
|
export function usePresetCode() {
|
|
const [params] = useDesignSystemSearchParams()
|
|
|
|
return getPresetCode(params)
|
|
}
|