diff --git a/apps/analytics/app/options/page.tsx b/apps/analytics/app/options/page.tsx deleted file mode 100644 index adaba41c..00000000 --- a/apps/analytics/app/options/page.tsx +++ /dev/null @@ -1,64 +0,0 @@ -"use client"; - -import React, { useState } from "react"; - -const eventTypes = [ - "AppSetup", - "ProtocolInstalled", - "InterviewStarted", - "InterviewCompleted", - "DataExported", - "Error", -]; - -const DropdownMenu = () => { - const [selectedOptions, setSelectedOptions] = useState( - eventTypes.map((eventType) => ({ text: eventType, isSelected: true })) - ); - - const toggleOption = (option: string) => { - setSelectedOptions((prevOptions) => - prevOptions.map((prevOption) => - prevOption.text === option - ? { ...prevOption, isSelected: !prevOption.isSelected } - : prevOption - ) - ); - }; - - const toggleAllOptions = (isSelected: boolean) => { - setSelectedOptions((prevOptions) => - prevOptions.map((prevOption) => ({ ...prevOption, isSelected })) - ); - }; - - const isAllSelected = selectedOptions.every((option) => option.isSelected); - - return ( -
- - {selectedOptions.map((option) => ( - - ))} -
- ); -}; - -export default DropdownMenu;