({ children, id, className, ...props }: BuyButtonProps)
| 8 | } |
| 9 | |
| 10 | function BuyButton({ children, id, className, ...props }: BuyButtonProps) { |
| 11 | //useEventBriteModal(id); |
| 12 | const { locale } = useContext(LanguageContext); |
| 13 | |
| 14 | return ( |
| 15 | <Button |
| 16 | id={id} |
| 17 | to={`/${locale}/con/2026/tickets`} |
| 18 | className={classNames("pink flex flex-row gap-1", className)} |
| 19 | {...props} |
| 20 | > |
| 21 | <svg |
| 22 | xmlns="http://www.w3.org/2000/svg" |
| 23 | viewBox="0 0 24 24" |
| 24 | fill="currentColor" |
| 25 | className="w-5 h-5" |
| 26 | > |
| 27 | <path |
| 28 | fillRule="evenodd" |
| 29 | d="M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.176 7.547 7.547 0 0 1-1.705-1.715.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.35.81 2.133 1a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.718Z" |
| 30 | clipRule="evenodd" |
| 31 | /> |
| 32 | </svg> |
| 33 | |
| 34 | {children} |
| 35 | </Button> |
| 36 | ); |
| 37 | } |
| 38 | |
| 39 | export default function BuyButtonContainer(props: BuyButtonProps) { |
| 40 | return <BuyButton {...props} />; |
nothing calls this directly
no outgoing calls
no test coverage detected