{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "copyright-text",
  "title": "Copyright Text",
  "description": "A copyright text component that displays the copyright information",
  "files": [
    {
      "path": "registry/components/ui/copyright-text.tsx",
      "content": "import { cn } from \"@/lib/utils\"\n\ntype CopyrightTextProps = {\n  companyName: string,\n  startYear?: number,\n  endYear?: number,\n  showRights?: boolean,\n  rightsText?: string,\n  className?: string,\n} & React.ComponentProps<\"p\">\n\nexport default function CopyrightText({\n  companyName,\n  startYear,\n  endYear = new Date().getFullYear(),\n  showRights = true,\n  rightsText = \"All rights reserved.\",\n  className,\n  ...props\n}: CopyrightTextProps) {\n  const showStartYear = startYear !== undefined && startYear !== endYear\n  const years = showStartYear\n    ? `${startYear}\\u2013${endYear}`\n    : `${endYear}`\n\n  const name = companyName.trim()\n  const needsPeriod = !name.endsWith(\".\")\n  const rights = showRights && rightsText\n    ? `${needsPeriod ? \".\" : \"\"} ${rightsText}`\n    : \"\"\n\n  return (\n    <p className={cn(\"text-xs text-muted-foreground\", className)} {...props}>\n      &copy; {years} {name}{rights}\n    </p>\n  )\n}",
      "type": "registry:ui",
      "target": "components/ui/copyright-text.tsx"
    }
  ],
  "type": "registry:ui"
}