Add custom information badge
import { useClickBadge } from '@make-software/csprclick-ui';useClickBadge structure
useClickBadge structureexport type BadgeSettings = {
title: string;
link?: string;
color?: string;
background: string;
};const ClickTopBar = ({ themeMode, onThemeSwitch }) => {
const { setLeftBadge } = useClickBadge();
setLeftBadge({
title: `📄 Go to CSPR.click docs`,
background: 'blue',
color:'white',
link: 'https://docs.cspr.click/'
});
}
Last updated

