mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
28 lines
693 B
TypeScript
28 lines
693 B
TypeScript
|
import { ReactNode } from "react"
|
||
|
|
||
|
type FormDateRangeProps = {
|
||
|
icon: ReactNode,
|
||
|
start: ReactNode,
|
||
|
connector: ReactNode,
|
||
|
end: ReactNode,
|
||
|
}
|
||
|
|
||
|
|
||
|
export function FormDateRange(props: FormDateRangeProps) {
|
||
|
return (
|
||
|
<div className="form-daterange">
|
||
|
<div className="form-daterange-icon">
|
||
|
{props.icon}
|
||
|
</div>
|
||
|
<div className="form-daterange-start">
|
||
|
{props.start}
|
||
|
</div>
|
||
|
<div className="form-daterange-connector">
|
||
|
{props.connector}
|
||
|
</div>
|
||
|
<div className="form-daterange-end">
|
||
|
{props.end}
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|