forked from mirrors/thatmattlove-hyperglass
6 lines
161 B
TypeScript
6 lines
161 B
TypeScript
import type { TIf } from './types';
|
|
|
|
export const If: React.FC<TIf> = (props: TIf) => {
|
|
const { c, children } = props;
|
|
return c ? <>{children}</> : null;
|
|
};
|