import clsx from "clsx"; import { type Dispatch, type SetStateAction } from "react"; import type { VideoMetadata } from "../../utils/types.ts"; import { inputClass, labelClass } from "../../utils/styles.ts"; type Props = { setMetadata: Dispatch>; className?: string; }; const MetadataBox = ({ setMetadata, className }: Props) => (
setMetadata(prev => ({ ...prev, title: e.target.value }))} className={inputClass} />
); export default MetadataBox;