LibreChat/client/src/components/Nav/SettingsTabs/General/ArchivedChats.tsx
Marco Beretta 0424f8fe55
🎨 style: settings tab update (#3088)
* style: settings UI  update

* style: update UI

* style: update button style

* fix: scroll settings on mobile

* feat: `?` for settings
2024-06-21 09:58:04 -04:00

28 lines
851 B
TypeScript

import { useLocalize } from '~/hooks';
import DialogTemplate from '~/components/ui/DialogTemplate';
import { Dialog, DialogTrigger } from '~/components/ui';
import ArchivedChatsTable from './ArchivedChatsTable';
export default function ArchivedChats() {
const localize = useLocalize();
return (
<div className="flex items-center justify-between">
<div>{localize('com_nav_archived_chats')}</div>
<Dialog>
<DialogTrigger asChild>
<button className="btn btn-neutral relative ">
{localize('com_nav_archived_chats_manage')}
</button>
</DialogTrigger>
<DialogTemplate
title={localize('com_nav_archived_chats')}
className="max-w-[1000px]"
showCancelButton={false}
main={<ArchivedChatsTable />}
/>
</Dialog>
</div>
);
}