diff --git a/web/app/_components/AdvancedPrompt/index.tsx b/web/app/_components/AdvancedPrompt/index.tsx
deleted file mode 100644
index 168e784db..000000000
--- a/web/app/_components/AdvancedPrompt/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { MenuAdvancedPrompt } from "../MenuAdvancedPrompt";
-import { useForm } from "react-hook-form";
-import BasicPromptButton from "../BasicPromptButton";
-import PrimaryButton from "../PrimaryButton";
-
-const AdvancedPrompt: React.FC = () => {
- const { register, handleSubmit } = useForm();
-
- const onSubmit = (data: any) => {};
-
- return (
-
- );
-};
-
-export default AdvancedPrompt;
diff --git a/web/app/_components/AdvancedPromptGenerationParams/index.tsx b/web/app/_components/AdvancedPromptGenerationParams/index.tsx
deleted file mode 100644
index f6695c440..000000000
--- a/web/app/_components/AdvancedPromptGenerationParams/index.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React, { useState } from "react";
-import TogglableHeader from "../TogglableHeader";
-
-const AdvancedPromptGenerationParams = () => {
- const [expand, setExpand] = useState(true);
- return (
- <>
- setExpand(!expand)}
- />
- >
- );
-};
-
-export default AdvancedPromptGenerationParams;
diff --git a/web/app/_components/AdvancedPromptImageUpload/index.tsx b/web/app/_components/AdvancedPromptImageUpload/index.tsx
deleted file mode 100644
index 9db97a42e..000000000
--- a/web/app/_components/AdvancedPromptImageUpload/index.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React, { useState } from "react";
-import { DropdownsList } from "../DropdownList";
-import TogglableHeader from "../TogglableHeader";
-import { UploadFileImage } from "../UploadFileImage";
-import { FieldValues, UseFormRegister } from "react-hook-form";
-
-type Props = {
- register: UseFormRegister;
-};
-
-const AdvancedPromptImageUpload: React.FC = ({ register }) => {
- const [expand, setExpand] = useState(true);
- const data = ["test1", "test2", "test3", "test4"];
-
- return (
- <>
- setExpand(!expand)}
- />
-
-
-
-
- >
- );
-};
-
-export default AdvancedPromptImageUpload;
diff --git a/web/app/_components/AdvancedPromptResolution/index.tsx b/web/app/_components/AdvancedPromptResolution/index.tsx
deleted file mode 100644
index 92c00e0d7..000000000
--- a/web/app/_components/AdvancedPromptResolution/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import React, { useState } from "react";
-import { DropdownsList } from "../DropdownList";
-import TogglableHeader from "../TogglableHeader";
-
-const AdvancedPromptResolution = () => {
- const [expand, setExpand] = useState(true);
- const data = ["512", "524", "536"];
- const ratioData = ["1:1", "2:2", "3:3"];
-
- return (
- <>
- setExpand(!expand)}
- />
-
- >
- );
-};
-
-export default AdvancedPromptResolution;
diff --git a/web/app/_components/AdvancedPromptText/index.tsx b/web/app/_components/AdvancedPromptText/index.tsx
deleted file mode 100644
index 8a0669725..000000000
--- a/web/app/_components/AdvancedPromptText/index.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import React, { useState } from "react";
-import TogglableHeader from "../TogglableHeader";
-import { AdvancedTextArea } from "../AdvancedTextArea";
-import { FieldValues, UseFormRegister } from "react-hook-form";
-
-type Props = {
- register: UseFormRegister;
-};
-
-const AdvancedPromptText: React.FC = ({ register }) => {
- const [expand, setExpand] = useState(true);
-
- return (
- <>
- setExpand(!expand)}
- />
-
- >
- );
-};
-
-export default AdvancedPromptText;
diff --git a/web/app/_components/AdvancedTextArea/index.tsx b/web/app/_components/AdvancedTextArea/index.tsx
deleted file mode 100644
index 26be021a1..000000000
--- a/web/app/_components/AdvancedTextArea/index.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { FieldValues, UseFormRegister } from "react-hook-form";
-
-type Props = {
- formId?: string;
- height: number;
- title: string;
- placeholder: string;
- register: UseFormRegister;
-};
-
-export const AdvancedTextArea: React.FC = ({
- formId = "",
- height,
- placeholder,
- title,
- register,
-}) => (
-
-
-
-
-);
diff --git a/web/app/_components/AiSearch/index.tsx b/web/app/_components/AiSearch/index.tsx
deleted file mode 100644
index 46c00b916..000000000
--- a/web/app/_components/AiSearch/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import Image from "next/image";
-
-const Search: React.FC = () => {
- return (
-
-
-
-
- );
-};
-
-export default Search;
diff --git a/web/app/_components/AiTypeCard/index.tsx b/web/app/_components/AiTypeCard/index.tsx
deleted file mode 100644
index d51f91d15..000000000
--- a/web/app/_components/AiTypeCard/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import Image from "next/image";
-import Link from "next/link";
-
-type Props = {
- name: string;
- imageUrl: string;
-};
-
-const AiTypeCard: React.FC = ({ imageUrl, name }) => {
- return (
-
-
-
- {name}
-
-
- );
-};
-
-export default AiTypeCard;
diff --git a/web/app/_components/ApiStep/index.tsx b/web/app/_components/ApiStep/index.tsx
deleted file mode 100644
index f310571fe..000000000
--- a/web/app/_components/ApiStep/index.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-type Props = {
- title: string;
- description: string;
-};
-
-export const ApiStep: React.FC = ({ description, title }) => {
- return (
-
- );
-};
diff --git a/web/app/_components/BasicPromptAccessories/index.tsx b/web/app/_components/BasicPromptAccessories/index.tsx
index 332bebbfb..6d57bdfde 100644
--- a/web/app/_components/BasicPromptAccessories/index.tsx
+++ b/web/app/_components/BasicPromptAccessories/index.tsx
@@ -1,20 +1,14 @@
"use client";
-import {
- currentConversationAtom,
- showingAdvancedPromptAtom,
-} from "@/_helpers/JotaiWrapper";
-import { useAtomValue, useSetAtom } from "jotai";
+import { showingAdvancedPromptAtom } from "@/_helpers/JotaiWrapper";
+import { useSetAtom } from "jotai";
import SecondaryButton from "../SecondaryButton";
import SendButton from "../SendButton";
-import { ProductType } from "@/_models/Product";
const BasicPromptAccessories: React.FC = () => {
const setShowingAdvancedPrompt = useSetAtom(showingAdvancedPromptAtom);
- const currentConversation = useAtomValue(currentConversationAtom);
const shouldShowAdvancedPrompt = false;
- // currentConversation?.product.type === ProductType.ControlNet;
return (
,
- HTMLButtonElement
- >
->;
-
-export const PrevButton: React.FC
= (props) => {
- const { children, ...restProps } = props;
-
- return (
-
- );
-};
-
-export const NextButton: React.FC = (props) => {
- const { children, ...restProps } = props;
-
- return (
-
- );
-};
diff --git a/web/app/_components/ChangeTheme/index.tsx b/web/app/_components/ChangeTheme/index.tsx
deleted file mode 100644
index 74fb7f6a0..000000000
--- a/web/app/_components/ChangeTheme/index.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { useTheme } from "next-themes";
-import { SunIcon, MoonIcon } from "@heroicons/react/24/outline";
-
-export const ThemeChanger: React.FC = () => {
- const { theme, setTheme, systemTheme } = useTheme();
- const currentTheme = theme === "system" ? systemTheme : theme;
-
- if (currentTheme === "dark") {
- return (
- setTheme("light")}
- />
- );
- }
-
- return (
- setTheme("dark")}
- />
- );
-};
diff --git a/web/app/_components/CompactHistoryItem/index.tsx b/web/app/_components/CompactHistoryItem/index.tsx
deleted file mode 100644
index 9112e1f0e..000000000
--- a/web/app/_components/CompactHistoryItem/index.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import {
- getActiveConvoIdAtom,
- setActiveConvoIdAtom,
-} from "@/_helpers/JotaiWrapper";
-import { useAtomValue, useSetAtom } from "jotai";
-import Image from "next/image";
-
-type Props = {
- imageUrl: string;
- conversationId: string;
-};
-
-const CompactHistoryItem: React.FC = ({ imageUrl, conversationId }) => {
- const activeConvoId = useAtomValue(getActiveConvoIdAtom);
- const setActiveConvoId = useSetAtom(setActiveConvoIdAtom);
-
- const isSelected = activeConvoId === conversationId;
-
- return (
-
- );
-};
-
-export default CompactHistoryItem;
diff --git a/web/app/_components/CompactHistoryList/index.tsx b/web/app/_components/CompactHistoryList/index.tsx
deleted file mode 100644
index 108b732c7..000000000
--- a/web/app/_components/CompactHistoryList/index.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import { useAtomValue } from "jotai";
-import CompactHistoryItem from "../CompactHistoryItem";
-import { userConversationsAtom } from "@/_helpers/JotaiWrapper";
-
-const CompactHistoryList: React.FC = () => {
- const conversations = useAtomValue(userConversationsAtom);
-
- return (
-
- {conversations.map(({ id, image }) => (
-
- ))}
-
- );
-};
-
-export default CompactHistoryList;
diff --git a/web/app/_components/CompactSideBar/index.tsx b/web/app/_components/CompactSideBar/index.tsx
deleted file mode 100644
index 520dec8c9..000000000
--- a/web/app/_components/CompactSideBar/index.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import CompactHistoryList from "../CompactHistoryList";
-import CompactLogo from "../CompactLogo";
-
-const CompactSideBar: React.FC = () => (
-
-
-
-
-);
-
-export default CompactSideBar;
diff --git a/web/app/_components/DescriptionPane/index.tsx b/web/app/_components/DescriptionPane/index.tsx
deleted file mode 100644
index 8006e4ecc..000000000
--- a/web/app/_components/DescriptionPane/index.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import { ApiStep } from "../ApiStep";
-
-const DescriptionPane: React.FC = () => {
- const data = [
- {
- title: "Install the Node.js client:",
- description: "npm install replicate",
- },
- {
- title:
- "Next, copy your API token and authenticate by setting it as an environment variable:",
- description:
- "export REPLICATE_API_TOKEN=r8_*************************************",
- },
- {
- title: "lorem ipsum dolor asimet",
- description: "come codes here",
- },
- ];
-
- return (
-
-
- Run the model
-
- {data.map((item, index) => (
-
- ))}
-
- );
-};
-
-export default DescriptionPane;
diff --git a/web/app/_components/GenerateImageCard/index.tsx b/web/app/_components/GenerateImageCard/index.tsx
deleted file mode 100644
index 601a15d7e..000000000
--- a/web/app/_components/GenerateImageCard/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import useCreateConversation from "@/_hooks/useCreateConversation";
-import { Product } from "@/_models/Product";
-
-type Props = {
- product: Product;
-};
-
-const GenerateImageCard: React.FC = ({ product }) => {
- const { name, avatarUrl } = product;
- const { requestCreateConvo } = useCreateConversation();
-
- return (
-
- );
-};
-
-export default GenerateImageCard;
diff --git a/web/app/_components/GenerateImageList/index.tsx b/web/app/_components/GenerateImageList/index.tsx
deleted file mode 100644
index 52dfdbf96..000000000
--- a/web/app/_components/GenerateImageList/index.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { Product } from "@/_models/Product";
-import GenerateImageCard from "../GenerateImageCard";
-import { PhotoIcon } from "@heroicons/react/24/outline";
-
-type Props = {
- products: Product[];
-};
-
-const GenerateImageList: React.FC = ({ products }) => (
- <>
- {products.length === 0 ? null : (
-
-
-
- Generate Images
-
-
- )}
-
- {products.map((item) => (
-
- ))}
-
- >
-);
-
-export default GenerateImageList;
diff --git a/web/app/_components/HistoryEmpty/index.tsx b/web/app/_components/HistoryEmpty/index.tsx
deleted file mode 100644
index a50e0ef86..000000000
--- a/web/app/_components/HistoryEmpty/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import useCreateConversation from "@/_hooks/useCreateConversation";
-import { executeSerial } from "@/_services/pluginService";
-import Image from "next/image";
-import React from "react";
-import { DataService } from "../../../shared/coreService";
-
-const HistoryEmpty: React.FC = () => {
- const { requestCreateConvo } = useCreateConversation();
- const startChat = async () => {
- const downloadedModels = await executeSerial(
- DataService.GET_FINISHED_DOWNLOAD_MODELS
- );
- if (!downloadedModels || downloadedModels?.length === 0) {
- alert(
- "Seems like there is no model downloaded yet. Please download a model first."
- );
- } else {
- requestCreateConvo(downloadedModels[0]);
- }
- };
- return (
-
-
-
- Its empty here
-
-
-
- );
-};
-
-export default React.memo(HistoryEmpty);
diff --git a/web/app/_components/HistoryItemDate/index.tsx b/web/app/_components/HistoryItemDate/index.tsx
deleted file mode 100644
index 16381e62b..000000000
--- a/web/app/_components/HistoryItemDate/index.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { displayDate } from "@/_utils/datetime";
-import React from "react";
-
-type Props = {
- timestamp: number;
-};
-
-const HistoryItemDate: React.FC = ({ timestamp }) => {
- return {displayDate(timestamp)}
;
-};
-
-export default React.memo(HistoryItemDate);
diff --git a/web/app/_components/JanWelcomeTitle/index.tsx b/web/app/_components/JanWelcomeTitle/index.tsx
deleted file mode 100644
index 71f51f50a..000000000
--- a/web/app/_components/JanWelcomeTitle/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from "react";
-import Image from "next/image";
-
-type Props = {
- title: string;
- description: string;
-};
-
-const JanWelcomeTitle: React.FC = ({ title, description }) => (
-
-
{title}
-
- Operated by
-
-
- {description}
-
-);
-
-export default React.memo(JanWelcomeTitle);
diff --git a/web/app/_components/MenuAdvancedPrompt/index.tsx b/web/app/_components/MenuAdvancedPrompt/index.tsx
deleted file mode 100644
index cac2f37c3..000000000
--- a/web/app/_components/MenuAdvancedPrompt/index.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import AdvancedPromptText from "../AdvancedPromptText";
-import AdvancedPromptImageUpload from "../AdvancedPromptImageUpload";
-import AdvancedPromptResolution from "../AdvancedPromptResolution";
-import AdvancedPromptGenerationParams from "../AdvancedPromptGenerationParams";
-import { FieldValues, UseFormRegister } from "react-hook-form";
-
-type Props = {
- register: UseFormRegister;
-};
-
-export const MenuAdvancedPrompt: React.FC = ({ register }) => (
-
-);
diff --git a/web/app/_components/MobileDownload/index.tsx b/web/app/_components/MobileDownload/index.tsx
deleted file mode 100644
index 710039e0b..000000000
--- a/web/app/_components/MobileDownload/index.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import React from "react";
-import Image from "next/image";
-
-const MobileDownload = () => {
- return (
-
- {/** Jan logo */}
-
-
Jan Mobile
- {/** Messages */}
-
- Stay up to date and move work forward with Jan on iOS & Android.
- Download the app today.
-
- {/** Buttons */}
-
-
- );
-};
-
-export default React.memo(MobileDownload);
diff --git a/web/app/_components/MobileInstallPane/index.tsx b/web/app/_components/MobileInstallPane/index.tsx
deleted file mode 100644
index bd8617612..000000000
--- a/web/app/_components/MobileInstallPane/index.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import Image from "next/image";
-
-const MobileInstallPane: React.FC = () => {
- return (
-
-
-
-
-
Jan Mobie
-
- Stay up to date and move work forward with Jan on iOS & Android.
-
- Download the app today.
-
-
-
-
-
-
- Download on the
-
AppStore
-
-
-
-
-
- Download on the
-
- Google Play
-
-
-
-
-
-
- );
-};
-
-export default MobileInstallPane;
\ No newline at end of file
diff --git a/web/app/_components/MobileShowcase/index.tsx b/web/app/_components/MobileShowcase/index.tsx
deleted file mode 100644
index 6e49768e6..000000000
--- a/web/app/_components/MobileShowcase/index.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-import Image from "next/image";
-import Link from "next/link";
-import React from "react";
-
-const MobileShowcase = () => {
- return (
-
-
-
-
-
Download Jan App
-
- Stay up to date and move work forward with Jan on iOS
- & Android. Download the app today.
-
-
-
-
-
- Join our Discord Community
-
-
-
-
- );
-};
-
-export default MobileShowcase;
diff --git a/web/app/_components/ModelDetailCost/index.tsx b/web/app/_components/ModelDetailCost/index.tsx
deleted file mode 100644
index 66985f04e..000000000
--- a/web/app/_components/ModelDetailCost/index.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from "react";
-
-type Props = {
- inferenceTime: string;
- hardware: string;
- averageCostPerCall: string;
- onGetApiKeyClick: () => void;
-};
-
-const ModelDetailCost: React.FC = ({
- inferenceTime,
- hardware,
- averageCostPerCall,
- onGetApiKeyClick,
-}) => {
- return
-
-
;
-};
-
-export default ModelDetailCost;
diff --git a/web/app/_components/ModelDetailSideBar/index.tsx b/web/app/_components/ModelDetailSideBar/index.tsx
deleted file mode 100644
index 8300c7dce..000000000
--- a/web/app/_components/ModelDetailSideBar/index.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import OverviewPane from "../OverviewPane";
-
-const ModelDetailSideBar: React.FC = () => (
-
-
-
-);
-
-export default ModelDetailSideBar;
diff --git a/web/app/_components/OverviewPane.tsx b/web/app/_components/OverviewPane.tsx
deleted file mode 100644
index 7e7185fe6..000000000
--- a/web/app/_components/OverviewPane.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-"use client";
-
-import { useAtomValue } from "jotai";
-import React from "react";
-import { currentProductAtom } from "@/_helpers/JotaiWrapper";
-
-const OverviewPane: React.FC = () => {
- const product = useAtomValue(currentProductAtom);
-
- return (
-
- );
-};
-
-export default OverviewPane;
-
-type Props = {
- title: string;
- value: string;
-};
-
-const AboutProductItem: React.FC = ({ title, value }) => {
- return (
-
- );
-};
-
-const SmallItem: React.FC = ({ title, value }) => {
- return (
-
- {title}
- {value}
-
- );
-};
diff --git a/web/app/_components/ProductOverview/index.tsx b/web/app/_components/ProductOverview/index.tsx
deleted file mode 100644
index 2ea691b96..000000000
--- a/web/app/_components/ProductOverview/index.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import React from "react";
-import useGetModels from "@/_hooks/useGetModels";
-
-const ProductOverview: React.FC = () => {
- const { models } = useGetModels();
-
- return ;
-};
-
-export default ProductOverview;
diff --git a/web/app/_components/SampleLlmContainer/index.tsx b/web/app/_components/SampleLlmContainer/index.tsx
deleted file mode 100644
index 07ade2a43..000000000
--- a/web/app/_components/SampleLlmContainer/index.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import JanWelcomeTitle from "../JanWelcomeTitle";
-import { Product } from "@/_models/Product";
-import { useSetAtom } from "jotai";
-import { currentPromptAtom } from "@/_helpers/JotaiWrapper";
-
-type Props = {
- product: Product;
-};
-
-const SampleLlmContainer: React.FC = ({ product }) => {
- const setCurrentPrompt = useSetAtom(currentPromptAtom);
- const { data } = { data: { prompts: [] } };
-
- return (
-
-
-
-
- Try now
-
- {/*
- {data?.prompts.map((item) => (
-
- ))}
-
*/}
-
-
- );
-};
-
-export default SampleLlmContainer;
diff --git a/web/app/_components/ShortcutItem/index.tsx b/web/app/_components/ShortcutItem/index.tsx
deleted file mode 100644
index 432422976..000000000
--- a/web/app/_components/ShortcutItem/index.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React from "react";
-import useCreateConversation from "@/_hooks/useCreateConversation";
-import Image from "next/image";
-import { Product } from "@/_models/Product";
-
-type Props = {
- product: Product;
-};
-
-const ShortcutItem: React.FC = ({ product }) => {
- const { requestCreateConvo } = useCreateConversation();
-
- return (
-
- );
-};
-
-export default React.memo(ShortcutItem);
diff --git a/web/app/_components/ShowMoreButton/index.tsx b/web/app/_components/ShowMoreButton/index.tsx
deleted file mode 100644
index b800eaf51..000000000
--- a/web/app/_components/ShowMoreButton/index.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import React from "react";
-import Image from "next/image";
-
-type Props = {
- onClick: () => void;
-};
-
-const ShowMoreButton: React.FC = ({ onClick }) => (
-
-);
-
-export default React.memo(ShowMoreButton);
diff --git a/web/app/_components/Slide/index.tsx b/web/app/_components/Slide/index.tsx
deleted file mode 100644
index 9b02ff7c8..000000000
--- a/web/app/_components/Slide/index.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import useCreateConversation from "@/_hooks/useCreateConversation";
-import { Product } from "@/_models/Product";
-import Image from "next/image";
-
-type Props = {
- product: Product;
-};
-
-const Slide: React.FC = ({ product }) => {
- const { name, avatarUrl, description } = product;
- const { requestCreateConvo } = useCreateConversation();
-
- return (
-
-
-
-
-
-
- {name}
-
-
- {description}
-
-
-
-
-
-
- );
-};
-
-export default Slide;
diff --git a/web/app/_components/Slider/index.tsx b/web/app/_components/Slider/index.tsx
deleted file mode 100644
index 07c8bc31d..000000000
--- a/web/app/_components/Slider/index.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { FC, useCallback, useEffect, useState } from "react";
-import Slide from "../Slide";
-import useEmblaCarousel, { EmblaCarouselType } from "embla-carousel-react";
-import { NextButton, PrevButton } from "../ButtonSlider";
-import { Product } from "@/_models/Product";
-
-type Props = {
- products: Product[];
-};
-
-const Slider: FC = ({ products }) => {
- const [emblaRef, emblaApi] = useEmblaCarousel();
- const [prevBtnDisabled, setPrevBtnDisabled] = useState(true);
- const [nextBtnDisabled, setNextBtnDisabled] = useState(true);
-
- const scrollPrev = useCallback(
- () => emblaApi && emblaApi.scrollPrev(),
- [emblaApi]
- );
- const scrollNext = useCallback(
- () => emblaApi && emblaApi.scrollNext(),
- [emblaApi]
- );
-
- const onSelect = useCallback((emblaApi: EmblaCarouselType) => {
- setPrevBtnDisabled(!emblaApi.canScrollPrev());
- setNextBtnDisabled(!emblaApi.canScrollNext());
- }, []);
-
- useEffect(() => {
- if (!emblaApi) return;
- onSelect(emblaApi);
- emblaApi.on("reInit", onSelect);
- emblaApi.on("select", onSelect);
- }, [emblaApi, onSelect]);
-
- return (
-
-
-
- {products.map((product) => (
-
- ))}
-
-
-
-
- );
-};
-
-export default Slider;
diff --git a/web/app/_components/TitleBlankState/index.tsx b/web/app/_components/TitleBlankState/index.tsx
deleted file mode 100644
index d05b4656c..000000000
--- a/web/app/_components/TitleBlankState/index.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-type Props = {
- title: string;
-};
-
-export const TitleBlankState: React.FC = ({ title }) => {
- return (
-
- {title}
-
- );
-};
diff --git a/web/app/_components/TogglableHeader/index.tsx b/web/app/_components/TogglableHeader/index.tsx
deleted file mode 100644
index fed06e5e5..000000000
--- a/web/app/_components/TogglableHeader/index.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import React, { useState } from "react";
-import Image from "next/image";
-
-type Props = {
- icon: string;
- title: string;
- expand: boolean;
- onTitleClick: () => void;
-};
-
-const TogglableHeader: React.FC = ({
- icon,
- title,
- expand,
- onTitleClick,
-}) => (
-
-);
-
-export default React.memo(TogglableHeader);
diff --git a/web/app/_components/UploadFileImage/index.tsx b/web/app/_components/UploadFileImage/index.tsx
deleted file mode 100644
index f1f89b22b..000000000
--- a/web/app/_components/UploadFileImage/index.tsx
+++ /dev/null
@@ -1,102 +0,0 @@
-import React, { useRef, useState } from "react";
-import Image from "next/image";
-import { FieldValues, UseFormRegister } from "react-hook-form";
-
-type Props = {
- register: UseFormRegister;
-};
-
-export const UploadFileImage: React.FC = ({ register }) => {
- const ref = useRef(null);
- const [image, setImage] = useState(null);
- const [checked, setChecked] = useState(true);
- const [fileName, setFileName] = useState("No selected file");
-
- const handleDrop = (event: React.DragEvent) => {
- event.preventDefault();
-
- const file = event.dataTransfer.files[0];
- if (!file || file.type.split("/")[0] !== "image") return;
-
- setImage(URL.createObjectURL(file));
- setFileName(file.name);
- };
-
- const handleDragOver = (event: React.DragEvent) => {
- event.preventDefault();
- };
-
- const handleClick = () => {
- ref.current?.click();
- };
-
- const onSelectedFile = (event: React.ChangeEvent) => {
- const files = event.target.files;
- if (!files || files.length === 0) return;
-
- const file = files[0];
- if (file.type.split("/")[0] !== "image") return;
-
- setImage(URL.createObjectURL(file));
- setFileName(file.name);
- };
-
- const handleDelete = () => {
- setImage(null);
- setFileName("No file selected");
- };
-
- return (
-
- {/* {image ? (
-
- ) : ( */}
-
- {/*
-
- Drag an image here, or click to select
- */}
-
-
- ){/* } */}
-
setChecked(!checked)}
- >
- setChecked(!checked)}
- />
-
- Crop center to fit output resolution
-
-
-
- );
-};