16 lines
369 B
JavaScript
16 lines
369 B
JavaScript
// src/component.ts
|
|
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
|
|
};
|
|
//# sourceMappingURL=chunk-FNB7ZWWX.mjs.map
|