p-stream/src/views/notfound/NotFoundChecks.tsx
2023-01-12 22:36:28 +01:00

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;
}