import {ValidationMarker} from 'sanity'

export type ParseResult = {isValid: boolean; date?: Date; error?: string} & (
  | {isValid: true; date: Date}
  | {isValid: false; error?: string}
)

export type CommonProps = {
  value?: string
  markers: ValidationMarker[]
  readOnly?: boolean
  level: number
  onFocus?: () => void
}
