// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {useRef, useState} from 'react'; import {Button} from '@astryxdesign/core/Button'; import {Card} from '@astryxdesign/core/Card'; import {useClickableContainer} from '@astryxdesign/core/hooks'; import {HStack, VStack} from '@astryxdesign/core/Layout'; import {Link} from '@astryxdesign/core/Link'; import {Heading, Text} from '@astryxdesign/core/Text'; const PROJECT_HREF = '#project-design-tokens'; export default function UseClickableContainerHookUsage() { const containerRef = useRef(null); const projectLinkRef = useRef(null); const [openCount, setOpenCount] = useState(0); const [isStarred, setIsStarred] = useState(false); const {onClick, onMouseUp} = useClickableContainer({ containerRef, interactiveRef: projectLinkRef, href: PROJECT_HREF, }); return ( setOpenCount(count => count + 1)}> Design tokens