@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
53 lines (52 loc) • 1.41 kB
TypeScript
export interface OperationalHoursProps {
/** An object that is keyed by the days of the week. Each day
contains the following:
status: represents an open or closed day of business for the week. If true, the business is open.
start: The time the business opens.
end: The time the business closes. */
hours: {
monday?: {
status?: boolean;
start?: Date;
end?: Date;
};
tuesday?: {
start?: Date;
end?: Date;
};
wednesday?: {
start?: Date;
end?: Date;
};
thursday?: {
start?: Date;
end?: Date;
};
friday?: {
start?: Date;
end?: Date;
};
saturday?: {
start?: Date;
end?: Date;
};
sunday?: {
start?: Date;
end?: Date;
};
};
/** Whether to show if currently active or not. */
showActive?: boolean;
/** A unique string used for generating the display of days for week. */
listKey: string;
/** Current day for the week that gets highlighted. */
currentDay?: string;
}
declare const OperationalHours: {
(props: OperationalHoursProps): any;
defaultProps: {
showActive: boolean;
currentDay: string;
};
};
export default OperationalHours;