import type { SVGProps } from "react";

export interface MotifSunriseProps extends SVGProps<SVGSVGElement> {
  /**
   * Icon size (width and height)
   * @default 16
   */
  size?: number | string;
}

/**
 * Brand motif — sunrise shape with 24 radiating rays
 * Part of the BrightLocal brand motif set (circle, sparkle, sunrise, starburst)
 *
 * Also used in the Loading animation as the sun morph shape.
 *
 * @example
 * <MotifSunrise size={24} />
 * <MotifSunrise size={32} className="text-primary" />
 */
export const MotifSunrise = ({ size = 16, ...props }: MotifSunriseProps) => (
  <svg
    aria-hidden="true"
    fill="currentColor"
    height={size}
    viewBox="0 0 500 500"
    width={size}
    xmlns="http://www.w3.org/2000/svg"
    {...props}
  >
    <path d="M254.225 2.31766L279.217 41.6104C280.827 44.1506 284.307 44.7006 286.628 42.7805L322.53 13.1284C325.36 10.7983 329.651 12.1883 330.561 15.7386L342.181 60.8317C342.932 63.7419 346.072 65.3421 348.862 64.242L392.175 47.1408C395.585 45.7907 399.235 48.4509 399.005 52.1012L396.125 98.5744C395.935 101.575 398.425 104.065 401.426 103.875L447.899 100.995C451.559 100.765 454.209 104.415 452.859 107.825L435.758 151.138C434.648 153.938 436.248 157.068 439.168 157.819L484.261 169.439C487.812 170.349 489.202 174.65 486.872 177.47L457.22 213.372C455.299 215.693 455.849 219.163 458.39 220.783L497.682 245.775C500.773 247.745 500.773 252.255 497.682 254.225L458.39 279.217C455.849 280.827 455.299 284.307 457.22 286.628L486.872 322.53C489.202 325.36 487.812 329.651 484.261 330.561L439.168 342.181C436.258 342.932 434.658 346.072 435.758 348.862L452.859 392.175C454.209 395.585 451.549 399.235 447.899 399.005L401.426 396.125C398.425 395.935 395.935 398.425 396.125 401.426L399.005 447.899C399.235 451.559 395.585 454.209 392.175 452.859L348.862 435.758C346.062 434.648 342.932 436.248 342.181 439.168L330.561 484.261C329.651 487.812 325.35 489.202 322.53 486.872L286.628 457.22C284.307 455.299 280.837 455.849 279.217 458.39L254.225 497.682C252.255 500.773 247.745 500.773 245.775 497.682L220.783 458.39C219.173 455.849 215.693 455.299 213.372 457.22L177.47 486.872C174.64 489.202 170.349 487.812 169.439 484.261L157.819 439.168C157.069 436.258 153.928 434.658 151.138 435.758L107.825 452.859C104.415 454.209 100.765 451.549 100.995 447.899L103.875 401.426C104.065 398.425 101.575 395.935 98.5744 396.125L52.1012 399.005C48.4409 399.235 45.7907 395.585 47.1408 392.175L64.242 348.862C65.3521 346.062 63.752 342.932 60.8318 342.181L15.7386 330.561C12.1884 329.651 10.7983 325.35 13.1284 322.53L42.7805 286.628C44.7006 284.307 44.1506 280.837 41.6104 279.217L2.31766 254.225C-0.772554 252.255 -0.772554 247.745 2.31766 245.775L41.6104 220.783C44.1506 219.173 44.7006 215.693 42.7805 213.372L13.1284 177.47C10.7983 174.64 12.1884 170.349 15.7386 169.439L60.8318 157.819C63.742 157.068 65.3421 153.928 64.242 151.138L47.1408 107.825C45.7907 104.415 48.4509 100.765 52.1012 100.995L98.5744 103.875C101.575 104.065 104.065 101.575 103.875 98.5744L100.995 52.1012C100.765 48.4409 104.415 45.7907 107.825 47.1408L151.138 64.242C153.938 65.3521 157.069 63.7519 157.819 60.8317L169.439 15.7386C170.349 12.1883 174.65 10.7983 177.47 13.1284L213.372 42.7805C215.693 44.7006 219.163 44.1506 220.783 41.6104L245.775 2.31766C247.745 -0.772554 252.255 -0.772554 254.225 2.31766Z" />
  </svg>
);
