Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
import type { MediaRuleOptions } from "./rules";
/**
* Compare two media query options for equality.
* Note: minWidth/maxWidth and condition are mutually exclusive.
*/
export const equalMedia = (left: MediaRuleOptions, right: MediaRuleOptions) => {
return (
left.minWidth === right.minWidth &&
left.maxWidth === right.maxWidth &&
left.condition === right.condition
);
};