🔥(frontend) remove DocTagPublic component

DocTagPublic component was removed because
it was not used.
This commit is contained in:
Anthony LC
2025-03-13 13:54:42 +01:00
committed by Anthony LC
parent 05a6818439
commit f26fc43df0

View File

@@ -1,35 +0,0 @@
import { useTranslation } from 'react-i18next';
import { Text } from '@/components';
import { useCunninghamTheme } from '@/cunningham';
import { Doc, LinkReach } from '@/docs/doc-management';
import { useResponsiveStore } from '@/stores';
interface DocTagPublicProps {
doc: Doc;
}
export const DocTagPublic = ({ doc }: DocTagPublicProps) => {
const { colorsTokens } = useCunninghamTheme();
const { t } = useTranslation();
const { isSmallMobile } = useResponsiveStore();
if (doc?.link_reach !== LinkReach.PUBLIC) {
return null;
}
return (
<Text
$weight="bold"
$background={colorsTokens()['primary-600']}
$color="white"
$padding="xtiny"
$radius="3px"
$size="s"
$position={isSmallMobile ? 'absolute' : 'initial'}
$css={isSmallMobile ? 'right: 10px;' : ''}
>
{t('Public')}
</Text>
);
};