slate/components/utility/Show.js

2 lines
91 B
JavaScript
Raw Normal View History

export const Show = ({ children, when, fallback = null }) => (when ? children : fallback);