28 行
529 B
TypeScript
28 行
529 B
TypeScript
import PostTextField from '@/components/posts/PostTextField'
|
|
|
|
import type { FC } from 'react'
|
|
|
|
type Props = {
|
|
value: string
|
|
onChange: (value: string) => void
|
|
errors?: string[]
|
|
disabled?: boolean }
|
|
|
|
|
|
const PostDurationField: FC<Props> = (
|
|
{ value,
|
|
onChange,
|
|
errors,
|
|
disabled },
|
|
) => (
|
|
<PostTextField
|
|
label="動画時間"
|
|
value={value}
|
|
onChange={onChange}
|
|
errors={errors}
|
|
disabled={disabled}
|
|
type="text"/>
|
|
)
|
|
|
|
export default PostDurationField
|