mirror of https://github.com/MaxLeiter/Drift
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			560 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			27 lines
		
	
	
		
			560 B
		
	
	
	
		
			TypeScript
		
	
import { ChangeEvent, memo } from "react"
 | 
						|
import { Input } from "@geist-ui/core/dist"
 | 
						|
 | 
						|
import styles from "../post.module.css"
 | 
						|
 | 
						|
type props = {
 | 
						|
	onChange: (e: ChangeEvent<HTMLInputElement>) => void
 | 
						|
	description: string
 | 
						|
}
 | 
						|
 | 
						|
const Description = ({ onChange, description }: props) => {
 | 
						|
	return (
 | 
						|
		<div className={styles.description}>
 | 
						|
			<Input
 | 
						|
				value={description || ""}
 | 
						|
				onChange={onChange}
 | 
						|
				label="Description"
 | 
						|
				maxLength={256}
 | 
						|
				width="100%"
 | 
						|
				placeholder="A short description of your post"
 | 
						|
			/>
 | 
						|
		</div>
 | 
						|
	)
 | 
						|
}
 | 
						|
 | 
						|
export default memo(Description)
 |