- >
- )
-
- return {inner}
- return {inner}
-}
-
-const newLinks = {
- pattern: {
- href: '/editor/',
- Icon: NewPatternIcon,
- title: 'Generate a new pattern',
- description:
- 'Pick a design, add your measurements set, and we will generate a bespoke sewing pattern for you.',
- },
- set: {
- Icon: NewMeasurementsSetIcon,
- title: 'Create new measurements set',
- description:
- 'Create a new set of measurements which you can then use to generate patterns for.',
- },
- showcase: {
- Icon: ShowcaseIcon,
- title: 'Create a new showcase post',
- description:
- 'Made something from a FreeSewing pattern? Please share the results here to inspire others.',
- },
- img: {
- Icon: KioskIcon,
- title: 'Generate a social media image',
- description:
- 'Share the FreeSewing love on social media, supports wide, square, and tall formats.',
- },
-}
-
-/**
- * The NewLinks component shows all of the links to create something new
- *
- * @param {object} props - All the React props
- * @param {function} Link - A custom Link component, typically the Docusaurus one, but it's optional
- */
-export const NewLinks = ({ Link = false }) => {
- // Use custom Link component if available
- if (!Link) Link = DefaultLink
-
- // Hooks
- const { account } = useAccount()
-
- return (
-