interface IProps{
propName:boolean;
}
export default function ComponentName(props?:IProps) {
const {propName=false} = props?props:{}
}
const { accountsTopBarMenuRender } = ComponentName();
or
const { accountsTopBarMenuRender } = ComponentName({propName:true});
or
<ComponentName/>
or
<ComponentName propName={true}/>