2025-11-25 19:35:15 +07:00
|
|
|
import { FC, PropsWithChildren, ReactNode } from 'react';
|
2025-05-23 00:28:29 +07:00
|
|
|
|
|
|
|
|
type TProps = PropsWithChildren<{
|
2025-11-25 19:35:15 +07:00
|
|
|
permissions?: Array<string>;
|
2025-05-23 00:28:29 +07:00
|
|
|
fallback?: ReactNode;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export const Guard: FC<TProps> = (props): ReactNode => {
|
2025-11-25 19:35:15 +07:00
|
|
|
// Permission checking removed - always allow access
|
|
|
|
|
return props.children;
|
2025-05-23 00:28:29 +07:00
|
|
|
};
|