security/codeql-dependabot-gitleaks
| 1 | import { Calendar } from "@medusajs/ui" |
| 2 | |
| 3 | export default function CalendarMinMax() { |
| 4 | const min = new Date() |
| 5 | const max = new Date() |
| 6 | max.setDate(max.getDate() + 10) |
| 7 | return ( |
| 8 | <div className="flex flex-col gap-2"> |
| 9 | <span className="txt-small text-ui-fg-muted"> |
| 10 | Selectable dates: {min.toDateString()} to {max.toDateString()} |
| 11 | </span> |
| 12 | <Calendar minValue={min} maxValue={max} /> |
| 13 | </div> |
| 14 | ) |
| 15 | } |