feat: add Switch component for premium content toggle in CreateContentsPage

This commit is contained in:
Ardeman
2025-03-06 08:18:36 +08:00
parent 8f8fb6b97c
commit d4d9861727
3 changed files with 99 additions and 2 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ type TComboboxOption = {
id: string
}
type TInputProperties<T extends FieldValues> = ComponentProps<
type TComboboxProperties<T extends FieldValues> = ComponentProps<
typeof HeadlessCombobox
> & {
id: string
@@ -40,7 +40,7 @@ type TInputProperties<T extends FieldValues> = ComponentProps<
}
export const Combobox = <TFormValues extends Record<string, unknown>>(
properties: TInputProperties<TFormValues>,
properties: TComboboxProperties<TFormValues>,
) => {
const {
id,