import { memo } from 'react' import Text from '@geist-ui/core/dist/text' import Input from '@geist-ui/core/dist/input' import ShiftBy from '@components/shift-by' import styles from '../post.module.css' const titlePlaceholders = [ "How to...", "Status update for ...", "My new project", "My new idea", "Let's talk about...", "What's up with ...", "I'm thinking about ...", ] type props = { setTitle: (title: string) => void title?: string } const Title = ({ setTitle, title }: props) => { return (
Drift setTitle(event.target.value)} height={"55px"} font={1.5} label="Post title" style={{ width: "100%" }} />
) } export default memo(Title)