behnamrhp 85a6bc9fb7 refs#156@1.5h
[FEAT]: add input place name and place type select box for ui of create place
2023-05-29 19:40:24 +03:00

19 lines
453 B
TypeScript

import React, { PropsWithChildren } from 'react';
export interface IInputWrapper {
title: string;
className?: string;
}
export default function InputWrapper(props: PropsWithChildren<IInputWrapper>) {
const { children, title, className } = props;
return (
<div className={`flex flex-col ${className}`}>
<label className='mb-1 text-txt-second text-xs' htmlFor={title}>
{title}
</label>
{children}
</div>
);
}