1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-10 15:05:01 +00:00

chore: supprime le composant inutilisé RuleReferences

This commit is contained in:
Jalil Arfaoui 2025-01-30 16:52:52 +01:00
parent 9e656c3233
commit ab515d2450

View file

@ -133,23 +133,3 @@ const getDomain = (link: string) =>
'www.',
''
)
export function RuleReferences({ dottedNames }: { dottedNames: DottedName[] }) {
const engine = useEngine()
return (
<Ul>
{dottedNames
.filter(
(dottedName) => engine.evaluate(`${dottedName} != non`).nodeValue
)
.map((dottedName) =>
Object.entries(
engine.getRule(dottedName).rawNode.références ?? {}
).map(([title, href]) => (
<Reference key={href} title={title} href={href} />
))
)}
</Ul>
)
}