import classNames from "classnames"; import { VuiSpacer } from "../spacer/Spacer"; import { VuiTextColor } from "../typography/TextColor"; import { VuiTitle } from "../typography/Title"; type Props = { children?: React.ReactNode; className?: string; href?: string; onClick?: () => void; title?: string; fullWidth?: boolean; }; export const VuiTopicButton = ({ children, className, href, onClick, title, fullWidth, ...rest }: Props) => { const classes = classNames("vuiTopicButton", className, { "vuiTopicButton--fullWidth": fullWidth }); const content = ( <> {title && ( <>

{title}

{children && } )} {children} ); if (href) { return ( {content} ); } return ( ); };