import React from 'react' import { classNames } from '@app/utils/classes' import { PropsWithChildren } from 'react' import { useInteractiveContext } from '../providers/interactive' import { GrStatusGoodSmall } from 'react-icons/gr' type ViewConfigTitleProps = { title?: string className?: string } // determine layout for view one of all or selected website todo function ViewConfigTitleStateless({ title = '', children, className = '', }: PropsWithChildren) { const { selectedWebsite } = useInteractiveContext() return (
<>

{selectedWebsite || title}

{children}
) } export { ViewConfigTitleStateless }