HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/eastcjee/public_html/wp-content/plugins/presto-player/src/admin/settings/components/CTA.js
const { Button, Card, CardBody } = wp.components;
const { dispatch } = wp.data;

export default ({ option, value, optionName, className }) => {
  return (
    <Card isBorderless className={className}>
      <CardBody isShady>
        {!!option?.name && <h2>{option.name}</h2>}
        {!!option.help && <p>{option.help}</p>}
        {!!option?.button?.text && (
          <Button
            isPrimary
            target={option?.button?.target}
            href={option?.button?.link}
          >
            {option.button.text}
          </Button>
        )}
      </CardBody>
    </Card>
  );
};