input 추가

This commit is contained in:
focp212@naver.com
2025-09-12 18:08:28 +09:00
parent 184a18f724
commit 6e4d0c8bcd
2 changed files with 31 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
import moment from 'moment';
import { useEffect } from 'react';
import { ChangeEvent, useState } from 'react';
import { useState } from 'react';
import { motion } from 'framer-motion';
import { IMAGE_ROOT } from '@/shared/constants/common';
import { FilterSelect } from '@/shared/ui/filter/select';

View File

@@ -0,0 +1,30 @@
import { ChangeEvent } from 'react';
export interface FilterInputProps {
title: string;
inputValue: string;
inputSetter: (value: any) => void;
};
export const FilterInput = ({
title,
inputValue,
inputSetter
}: FilterInputProps) => {
return (
<>
<div className="opt-field">
<div className="opt-label">{ title }</div>
<div className="opt-controls">
<input
className="flex-1"
type="text"
placeholder=""
value={ inputValue }
onChange={ (e: ChangeEvent<HTMLInputElement>) => inputSetter(e.target.value)}
/>
</div>
</div>
</>
);
};