Skip to content

Commit

Permalink
Chore: Convert AutoTranslate (#25591)
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroRorato authored and ggazzo committed May 24, 2022
1 parent 43303bc commit 88a8d15
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import { FieldGroup, Field, ToggleSwitch, Select } from '@rocket.chat/fuselage';
import type { SelectOption } from '@rocket.chat/fuselage';
import { useTranslation } from '@rocket.chat/ui-contexts';
import React from 'react';

import VerticalBar from '../../../../components/VerticalBar';

const AutoTranslate = ({ language, languages, handleSwitch, translateEnable, handleChangeLanguage, handleClose }) => {
type AutoTranslateProps = {
language: string;
languages: SelectOption[];
handleSwitch: (event?: any) => void;
translateEnable: boolean | undefined;
handleChangeLanguage: (value: string) => void;
handleClose?: () => void;
};

const AutoTranslate = ({ language, languages, handleSwitch, translateEnable, handleChangeLanguage, handleClose }: AutoTranslateProps) => {
const t = useTranslation();

return (
Expand Down

0 comments on commit 88a8d15

Please sign in to comment.