Files
AFFiNE-Mirror/libs/components/ui/src/date/Calendar.tsx
T
2022-08-13 03:16:26 +08:00

14 lines
320 B
TypeScript

import {
Calendar as ReactCalendar,
type CalendarProps,
} from 'react-date-range';
import { useTheme } from '../theme';
export { CalendarProps };
export const Calendar = (props: CalendarProps) => {
const theme = useTheme();
return <ReactCalendar color={theme.affine.palette.primary} {...props} />;
};