slate/components/utility/Show.js

2 lines
91 B
JavaScript

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