chore: remove unused UI components, dummy data, and theme provider

This commit is contained in:
2026-02-22 00:16:58 +07:00
parent 58d74cb8c8
commit 384ac12109
13 changed files with 948 additions and 229 deletions
+68
View File
@@ -0,0 +1,68 @@
export type QuestionType =
| "short_text"
| "long_text"
| "multiple_choice"
| "checkbox"
| "dropdown"
| "date"
| "rating"
export interface QuestionOption {
id: number
label: string
position: number
}
export interface Question {
id: string
type: QuestionType
title: string
required: boolean
position: number
options: QuestionOption[]
}
export interface FormSummary {
id: string
title: string
description: string
response_count: number
created_at: string
updated_at: string
}
export interface FormDetail {
id: string
user_id: string
title: string
description: string
response_count: number
questions: Question[]
created_at: string
updated_at: string
}
export interface CreateQuestionOption {
label: string
position: number
}
export interface CreateQuestion {
type: QuestionType
title: string
required: boolean
position: number
options: CreateQuestionOption[]
}
export interface CreateFormPayload {
title: string
description: string
questions: CreateQuestion[]
}
export interface UpdateFormPayload {
title: string
description: string
questions: CreateQuestion[]
}