diff --git a/imports/panel.tsx b/imports/panel.tsx
index 07c8ede..e1c8ff2 100644
--- a/imports/panel.tsx
+++ b/imports/panel.tsx
@@ -1,6 +1,6 @@
import React, { Dispatch, SetStateAction, useState } from 'react';
import {
- Box, Button, Center, Flex, HStack, Input, Square, Text,
+ Box, Button, Center, Flex, HStack, Input, Square, Text, Textarea,
} from '@chakra-ui/react';
import { MultiSelect } from 'chakra-multiselect';
@@ -47,30 +47,48 @@ export function Column({
}}
/>}
-
-
- {templateTabs.map(t => (
+ {!!index && (<>
+
+
+ {templateTabs.map(t => (
+
+ ))}
+
+
+
+
+
- ))}
-
-
+ variant={'outline'}
+ colorScheme="white"
+ size="sm"
+ onClick={() => {
+ confirm(`You sure you want to lost ${templateTab} of ${_lists[0][index - 1].list[selected[index - 1]]} with new generation?`);
+ }}
+ >regenerate
+
+
+ >)}
{_list.map((l, i) =>
@@ -99,7 +117,8 @@ export function Panel() {
return
- {_lists[0].map((l, i) => )}
+ {(_selected[0].length ? _selected[0] : [0]).slice(0, _lists[0].length).map((s, ii) => )}
+ {/* {_lists[0].map((l, i) => )} */}
}
\ No newline at end of file