import React from 'react'
import Required from './required'

export default function Input(props: {
  label: string
  required: boolean
  children: React.ReactChildren
}) {
  const { label, required, children } = props

  return (
    <>
      <div className="fsw">
        <div className="fs">
          <label className="flabel">
            {label} {required && <Required />}
          </label>
          {children}
        </div>
      </div>
    </>
  )
}
