import dayjs from 'dayjs';
import relativeTimePlugin from 'dayjs/plugin/relativeTime';

dayjs.extend(relativeTimePlugin);

export const relativeTimeTo = (date: dayjs.ConfigType) => dayjs().to(dayjs(date));
