Initial theme designed

This commit is contained in:
David
2021-03-16 01:33:19 +01:00
parent 6153f739d2
commit 13877b5e11
16 changed files with 1739 additions and 120 deletions

View File

@@ -0,0 +1,23 @@
import { FC, ChangeEvent } from "react";
import { Textarea, useBreakpointValue } from "@chakra-ui/react";
type Props = {
value: string,
onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void,
readOnly?: true
[key: string]: any
};
const TranslationArea: FC<Props> = ({ value, onChange, readOnly, ...props }) => (
<Textarea
value={value}
onChange={onChange}
readOnly={readOnly}
resize="none"
rows={useBreakpointValue([6, null, 12]) ?? undefined}
size="lg"
{...props}
/>
);
export default TranslationArea;