- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
12 lines
302 B
JavaScript
12 lines
302 B
JavaScript
function mode(light, dark) {
|
|
return (props) => props.colorMode === "dark" ? dark : light;
|
|
}
|
|
function orient(options) {
|
|
const { orientation, vertical, horizontal } = options;
|
|
if (!orientation)
|
|
return {};
|
|
return orientation === "vertical" ? vertical : horizontal;
|
|
}
|
|
|
|
export { mode, orient };
|