mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
33 lines
No EOL
828 B
TypeScript
33 lines
No EOL
828 B
TypeScript
import classNames from "classnames"
|
|
import { ReactNode } from "react"
|
|
|
|
type FormDateRangeProps = {
|
|
preview: boolean,
|
|
icon: ReactNode,
|
|
start: ReactNode,
|
|
connector: ReactNode,
|
|
end: ReactNode,
|
|
}
|
|
|
|
|
|
export function FormFromTo(props: FormDateRangeProps) {
|
|
return (
|
|
<div className={classNames({
|
|
"form-fromto": true,
|
|
"form-fromto-preview": props.preview,
|
|
})}>
|
|
<div className="form-fromto-icon">
|
|
{props.icon}
|
|
</div>
|
|
<div className="form-fromto-start">
|
|
{props.start}
|
|
</div>
|
|
<div className="form-fromto-connector">
|
|
{props.connector}
|
|
</div>
|
|
<div className="form-fromto-end">
|
|
{props.end}
|
|
</div>
|
|
</div>
|
|
)
|
|
} |