import { Button, HStack, Stack } from '@chakra-ui/react' import { ThemeTemplate } from '@typebot.io/schemas' import { useState } from 'react' import { MyTemplates } from './MyTemplates' import { TemplatesGallery } from './TemplatesGallery' type Tab = 'my-templates' | 'gallery' type Props = { workspaceId: string selectedTemplateId: string | undefined currentTheme: ThemeTemplate['theme'] onTemplateSelect: ( template: Partial> ) => void } export const ThemeTemplates = ({ workspaceId, selectedTemplateId, currentTheme, onTemplateSelect, }: Props) => { const [selectedTab, setSelectedTab] = useState('my-templates') return ( ) } const ThemeTemplatesBody = ({ tab, workspaceId, selectedTemplateId, currentTheme, onTemplateSelect, }: { tab: Tab } & Props) => { switch (tab) { case 'my-templates': return ( ) case 'gallery': return ( ) } }