mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-05 00:39:17 +00:00
17 lines
359 B
TypeScript
17 lines
359 B
TypeScript
import { ReactElement } from "react";
|
|
|
|
export interface NotFoundChecksProps {
|
|
id: string;
|
|
children?: ReactElement;
|
|
}
|
|
|
|
/*
|
|
** Component that only renders children if the passed in data is fully correct
|
|
*/
|
|
export function NotFoundChecks(
|
|
props: NotFoundChecksProps
|
|
): ReactElement | null {
|
|
// TODO do notfound check
|
|
|
|
return props.children || null;
|
|
}
|