Skip to content

Commit

Permalink
dont hint at importing if there are no available imports
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 9, 2024
1 parent 1081b21 commit bc3c46d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prompt-templates/create-circuit-board1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ Examples:
<trace from=".U1 .D3" to=".U1 .GND" />
<trace from=".U1 .D2" to="net.VCC" />
### Importing Components
${
!availableImports
? ""
: `### Importing Components
You can import a variety of components from the tscircuit registry. tscircuit
registry components are always prefixed with \`@tsci/\`. Make sure to include
Expand All @@ -104,6 +107,8 @@ ${description}
)
.join("\n")
}
`
}
### Quirks
Expand Down

0 comments on commit bc3c46d

Please sign in to comment.