mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
7 lines
161 B
TypeScript
7 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;
|
|
};
|