/** @jsxRuntime classic */ /** @jsx jsx */ import React from 'react'; import { Button, getIcon } from '../../index'; import { css, jsx, useTheme } from '@emotion/react'; import { DateInput } from '../../Input/DateInput'; import { IColors } from '../../../types/theme'; import { ECalendarMode, ECalendarView } from '../../../SACalendar/types'; import { ModeSelector } from './ModeSelector'; import { Checkbox } from '../../Checkbox'; const container = css` padding: 20px 20px 16px 20px; display: flex; align-items: center; justify-content: space-between; div { margin: 0; } .error-message { display: none; } `; const seperatorCss = (colors: IColors) => css` background: ${colors.bg_border_seperator}; width: 1px; height: unset; display: block; `; interface IFilterLineProps { mode: ECalendarMode; setMode: (mode: ECalendarMode) => void; view: ECalendarView; setView: (view: ECalendarView) => void; setDate: (date: string) => void; infinite: boolean; setInfinite: (state: boolean) => void; partial: boolean; setPartial: (state: boolean) => void; } export const FilterLine = ({ mode, setMode, view, setView, setDate, infinite, setInfinite, partial, setPartial, }: IFilterLineProps) => { const colors = useTheme(); return (
setDate(String(date))} />
{Object.values(ECalendarView).map((item) => ( ))}
); };