123456789101112131415161718192021222324252627282930313233343536373839404142import React, { ReactElement } from "react";
import { Divider } from "@react-md/divider";
import { TextArea, TextField, FormThemeProvider } from "@react-md/form";
import { useIsUserInteractionMode } from "@react-md/utils";
import Phone from "./Phone";
import styles from "./InputChips.module.scss";
import To from "./To";
export default function Demo(): ReactElement {
const isTouch = useIsUserInteractionMode("touch");
return (
<FormThemeProvider theme="none">
<Phone
id="input-chips"
statusBar
contentClassName={styles.container}
disableFocusOnMount={isTouch}
>
<To />
<Divider />
<TextField
id="input-chips-subject"
name="subject"
inputClassName={styles.padded}
placeholder="Subject"
defaultValue="Re: Vacation Request"
/>
<Divider />
<TextArea
id="input-chips-message"
placeholder="Message"
className={styles.message}
areaClassName={styles.padded}
resize="none"
/>
</Phone>
</FormThemeProvider>
);
}