-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c215a5
commit b718be4
Showing
6 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
27 changes: 16 additions & 11 deletions
27
...nts/ChatInput/components/ChatBar/components/MentionInput/components/AddNewBrainButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import Link from "next/link"; | ||
|
||
import Button from "@/lib/components/ui/Button"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
export const AddNewBrainButton = (): JSX.Element => ( | ||
<Link | ||
href={"/brains-management"} | ||
onClick={(event) => { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
}} | ||
> | ||
<Button variant={"tertiary"}>Create new brain</Button> | ||
</Link> | ||
); | ||
export const AddNewBrainButton = (): JSX.Element => { | ||
const { t } = useTranslation(["chat"]); | ||
|
||
return ( | ||
<Link | ||
href={"/brains-management"} | ||
onClick={(event) => { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
}} | ||
> | ||
<Button variant={"tertiary"}>{t("new_brain")}</Button> | ||
</Link> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters